Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do nesting level
Message
 
 
À
18/09/2001 00:51:08
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00557186
Message ID:
00557663
Vues:
19
Hi!

Then modify your expression:

Num=val(m.cObjValue)
iif(Num=0,'AAAA'+m.cObjValue,padl(Num,4,"0")+substr(m.cObjValue,len(alltrim(str(Num)))+1))

Note I did a mistake in the previos expression...

HTH.

>more info, A1, B2A, 10C, 3, B2 should be sort to 3, 10C, A1, B2, B2A...
>
>
>>Hmm.. how if the list contains a set of strings, each string have length 1-4, which can be any combination of 1-9, A-Z?
>>
>>such as A1, B2A, 10C, 3... etc.
>>
>>is it still possible to use asort? I still cant think of a way to do it yet..
>>
>>any idea?
>>
>>Jimi
>>
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform