>>>Is there a function where you can take a string which is delimited and convert the values in a string into an array. ex "2222 3333 4444 5555"?
>>
>>ALINES() will do that for you, at least in VFP 8.
>>
>>? ALINES(laX,"1111 2222 3333 4444",.f.," ")
>>? lax[1]
>>? lax[2]
>>? lax[3]
>>? lax[4]
>>
>>The 4th parameter is the character to use to parse the list. Without that parsing at " " characters you would only get one line.
>
>
>ALINES() is available starting in VFP7 :)
Nope, it was introduced in VFP6. However, 4th parameter was added in VFP7. In VFP6 you would convert delimiter to CHR(13).
lcStr = "1111 2222 3333 4444"
? ALINES(laX,CHRTRAN(lcStr, SPACE(1), CHR(13)))
--sb--