Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delimited string manipulation
Message
De
31/10/2003 13:23:16
 
 
À
31/10/2003 13:19:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00844670
Message ID:
00845120
Vues:
15
>Hi Fred,
>
>on VFP6 this is another (faster) way:
>
>ALINES(aInfo,CHRTRAN(cInfoList,",",CHR(13)))
>
>
>Fabio

On a one-shot conversion of the source string to an array, speed was not an issue here. If you need to do this repeatedly, like in a loop, then speed could certainly become a factor.

I've only used this to intialize arrays from a string at the beginning of code to make the array initialization easier than specifying:
aInfo[1] = ...
aInfo[2] = ...
aInfo[xxx] = ...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform