>Hi
>
>i have one string
>
>lcString = "18,21,33,45,150,999"
>
>I want extract numbers
>
>18
>21
>33
>45
>150
>999
>
>"," is separator between numbers
>
>thanks
In VFP6 and up you could use alines(). Prior to VFP6 below is another alternative (and for short lists faster than alines) :
oDummy = createobject('Listbox')
with oDummy
.RowSourceType = 1
.RowSource = tcStr
dimension arrElems[.ListCount]
for ix=1 to .ListCount
arrElems[ix] = .List(ix)
endfor
endwith
release oDummy
Cetin