Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alines -> cursor records
Message
De
29/01/2013 22:23:52
 
 
À
28/01/2013 18:43:56
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01564408
Message ID:
01564626
Vues:
42
>>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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform