Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading variables from a character delimited field.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00484959
Message ID:
00485240
Views:
19
Hi Brian.

>> Hello, I have a field in my database that holds information for me that is Semi-Colon Delimited. Is there a function in VFP to read the variables to an array or a group of variables? <<

Just to add to all the other answers you have received, VFP doesn't have a native function to do this (yet), but there are a couple in FoxTools.FLL that are very handy to do this. If you have the FoxTools library loaded, you can use code like this to store your sting to an array:
LOCAL lnVarCount, lnVar
lnVarCount = WORDS( < MyString >, ';' )
DIMENSION MyArray[ lnVarCount ]

FOR lnVar = 1 TO lnVarCnt
   MyArray[ lnVar ] = WORDNUM( < MyString >, lnVar, ';' )
ENDFOR
Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform