From: | Jean-Marc GIGANDET |
Date: | 13 Aug 2001 at 22:40:34 |
Subject: | Re: sort and sortlist |
Hello Steve
You can sort Lists with strings !!!
You just have to follow these rules :
Put a dummy .w in first place of your array type
Then simply use :
StringSort ArrayName(),SizeOf.TypeOfArray,Offset of the string you want to sort
Ex: Assume you want to sort an array using Generic type on NamGen field which is in 2nd place.
NEWTYPE .Generic
IdxGen.w ; Index Generic
NamGen.s ; Name Generic
NatGen.s ; Nationality Generic
DBiGen.l ; Birth Date Generic
DKiGen.l ; Death Date Generic
End NEWTYPE
Dim List LstGen.Generic(100)
StringSort LstGen(),SizeOf.Generic,2
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie