Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need help parsing
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00429941
Message ID:
00429986
Views:
12
Nick

If there are always spaces between each category you might try something like this:


for lcnt=1 to occurs(' ',' '+alltrim(col7))
ltype=substR(' '+alltrim(col7),at(' ',' '+alltrim(col7),lcnt)+1)
ltype=left(ltype,at(' ',ltype+' ')-1)
lcolumn='col'+alltrim(str(occurs(' ',;
left(' '+alltrim(col7),at(ltype,' '+alltrim(col7)))))
lvalue=eval(lcolumn)

...some code to save the info
endfor


Make sure to get rid of any double spaces first.

HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform