|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Sun Jun 08, 2003 1:56 pm
Variable lists |
Anyone written a scriptor some other means to sort variable lists alphabetically?
Shalimar
AIM: shalimarwildcat |
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Sun Jun 08, 2003 2:15 pm |
______________________________________________________________
sort
Syntax: %sort(list[,dir])
returns the list with items sorted in alphabetical order. If Dir is missing or zero, list is sorted in ascending order. If Dir is non-zero, list is sorted in descending order.
Examples:
#VAR slist {123|ab|45|008|789|ABC|ab cd|def|9}
#SHOW %sort(@slist)
displays:
008|123|45|789|9|ab|ab cd|ABC|def
#SHOW %sort(@slist,1)
displays:
def|ABC|ab cd|ab|9|789|45|123|008
______________________________________________________
Stright from the help files that come with Zmud :)
megamog75
Keeper of the only printable help files for Zmud. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|