Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delimited string manipulation
Message
From
31/10/2003 13:23:16
 
 
To
31/10/2003 13:19:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00844670
Message ID:
00845120
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform