[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Using [sort] on fields with spaces
****** message to minivend-users from Mike Lerley <mike@bfent.com> ******
OK, I can work with that. Thanks!
-mike
Frank Miedreich wrote:
>
> ****** message to minivend-users from Frank Miedreich <miedreich@acm.org> ******
>
> >****** message to minivend-users from Mike Lerley <mike@bfent.com>
> >******
> >
> >Scenario: Let's say I have the following arbitrary database, named
> >"countries":
> >country,code
> >U.S.A.,1
> >Canada,2
> >United Kingdom,3
> >French New Guinea,4
> >
> >Code 1:
> >[tag each countries]
> >[loop-code]
> >[/tag]
> >
> >Output 1:
> >United Kingdom
> >U.S.A.
> >Canada
> >French New Guinea
> >(random order due to hashing)
> >
> >Code 2:
> >[tag each countries]
> >[sort countries:country]
> >[loop-code]
> >[/tag]
> >
> >Output 2:
> >Canada
> >French
> >Guinea
> >Kingdom
> >New
> >United
> >U.S.A.
> >
> >erm... is there something I'm missing? Highly frustrating. Thanks for
> >any insight...
> >-mike
> >
>
> The code of a database should not contain any spaces. In your case you have
> a database with a code field named country with a single data field named
> code.
> Change the database to
> code, country
> 1,U.S.A
> 2,etc
>
> and Code 2 to:
> [tag each countries]
> [sort countries:country]
> [loop-data countries country]
> [/tag]
>
> Frank
>
> --
> Frank Miedreich
> Max-Planck-Institut fuer psychologische Forschung
>
> -
> To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
--
Mike Lerley, Technical Systems Administrator
Goold Health Systems
24 Stone Street
Augusta, ME 04330
Email mike@bfent.com
Phone (207) 622-3298
Fax (207) 623-5125
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS$/CM d- s:+ a-- C++++ UL++++U+CA+ P++++$ L++++
E--- W+++ N !o K- w--- !O M-- V PS PE++ Y PGP- t+ 5+
X+++ R- tv+ b+ DI++ D++ G e++ h--- r+++ y+++
------END GEEK CODE BLOCK------
http://www.ebb.org/ungeek/
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list