Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alines -> cursor records
Message
From
29/01/2013 22:23:52
 
 
To
28/01/2013 18:43:56
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01564408
Message ID:
01564626
Views:
46
>>How can we insert the individual words 'this is a test!' into separate rows of a cursor very quickly?
>>
>>I used alines(a,"this is a test!",13," ","!") and got an array like this:
>>
>>a[1]="this"
>>a[2]="is"
>>a[3]="a"
>>a[4]="test"
>>
>>That cannot be inserted into a cursor as one word per row, can it?
>
>It can, but the array needs to be two dimensional. So this little trick will do that:
>
>dimension a[4,1]
>append from array a
>
>Fox doesn't care that the number of columns is 1, it just wants the array to HAVE columns.

That was it! Thanks!
I ain't skeert of nuttin eh?
Yikes! What was that?
Previous
Reply
Map
View

Click here to load this message in the networking platform