Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing a text string
Message
 
To
15/02/2003 05:38:14
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00753613
Message ID:
00753711
Views:
12
Hi Cetin,

Regarding your "older" method, I might suggest an alternative:
tcStr = "2222 3333 4444 5555"
tcStr = STRTRAN(tcStr, ' ', chr(13))

for i=1 to memlines(tcStr) && now tcStr may be treated like a 1 column array
 ...
endfor
Hugh


>*Older - for short lists this was fastest as I could see
>tcStr = "2222 3333 4444 5555"
>tcStr = chrtran(tcStr, " ",",")
>oDummy = createobject('Listbox')
>with oDummy
> .RowSourceType = 1 && Value
> .RowSource = tcStr
> dimension arrVals[.ListCount]
> for ix=1 to .ListCount
> arrVals[ix] = .List(ix)
> endfor
>endwith
>release oDummy
>Cetin
Microsoft hears loudest what the VFP community says about Visual FoxPro by looking at the bottom line!

Support the product. Buy the latest version!

Hugh Winters @ WorldData 408-512-1131
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform