Re: Sorting lines by variable directions and types
Message: 22 Date: Sun, 27 Jun 2010 23:14:00 -0500 From: Ken Ray Subject: Re: Sorting lines by variable directions and types To: Use Revolution List Message-ID: Content-Type: text/plain; charset="US-ASCII" Is there some slight of hand I can perform on the variables tDirection and tType to make my one-liner functional, i.e. sort lines of tList MagicOperator(tDirection) MagicOperator(tType) by word 1 of each You should be able to use "do" for this: do "sort lines of tList" && tDirection && tType && "by word 1 of each" Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ Ah, the "DO" command. I remember now hearing about it on this list in times long gone by. I always felt there was always something a little mysterious and miraculous about it. I think there must have been a "DO" command involved when the Sun stood still for Joshua. Don't explain it to me. I need a little mystery in my life right now. Suffice it to say that it works. Thanks. Jim Hurley ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Sorting lines by variable directions and types
> Is there some slight of hand I can perform on the variables tDirection > and tType to make my one-liner functional, i.e. > > sort lines of tList MagicOperator(tDirection) > MagicOperator(tType) by word 1 of each You should be able to use "do" for this: do "sort lines of tList" && tDirection && tType && "by word 1 of each" Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Sorting lines by variable directions and types
I have a table in which some columns are text and some are numbers I would like to assign values to the variables tDirection and tType so that I could do something like: put "descending" into tDirection put "text" into tType put field 1 into tList sort lines of tList tDirection tType by word 1 of each But Rev balks at the variables tDirection and tType. It wants the explicit words "ascending" , "descending" "text" or "numeric" I can get around this by using multiple conditionals (If tDirection is "ascending" then sort lines of tList ascending..." But this is a little cumbersome since there are 4 pairs of direction and type. Is there some slight of hand I can perform on the variables tDirection and tType to make my one-liner functional, i.e. sort lines of tList MagicOperator(tDirection) MagicOperator(tType) by word 1 of each Thanks, Jim Hurley ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution