Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can i add all the records
Message
De
27/07/2006 09:58:56
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
 
 
À
27/07/2006 09:54:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01140643
Message ID:
01140670
Vues:
14
>>>>hi all,
>>>>
>>>>here is my problem
>>>>
>>>>
>>>>dimension garray[4]
>>>>for m.xi = 1 to 4
>>>>garray[m.xi] = 'A'
>>>>next
>>>>
>>>>create cursor foo (f1 c(1))
>>>>
>>>>append from array garray
>>>>
>>>>
>>>>
>>>>this adds only 1 row
>>>>
>>>>how can i add all the contents to the cursor ??
>>>>
>>>>suhashegde
>>>
>>>I think you need a two-dimensional cursor. One dimension will be the records, the second dimension will be the fields in each record.
>>
>>ya i know i need a 2 columns but how to get the second column without losing the data is what i could not figure ...that is after the first populating the array...
>
>You can change a one-dimensional array to a two-dimensional array, without losing data. For example:
>
>
>dimension x(4)
>x(1) = 5
>x(3) = date()
>dimension x(4,1)
>
Don't you mean dimension x(1,4)?

Regards,
Jim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform