Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append to array property - redimension first?
Message
De
25/02/1999 06:27:21
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00190135
Message ID:
00191324
Vues:
18
>>Knowing that SQL select won't read the buffers, I used the Copy To Array, and, since this array will be needed elsewhere in the form, did something like "copy to array thisform.aArray". The array property was dimensioned aa aArray[1,0]. It invairably copied only one row.
>>
>>In all other cases, the arrays are redimensioned as the "copy to" command requires (or am I wrong?). Does this mean that array properties are an exception?
>
>Dragan,
>
>This is exact ]=ly how is is supposed to wokr. COPY TO ARRAY with a one dimensional array copies one record, while a two dimensional array copies multiple records. Try defining your array property as aArray(1,2)

It still gives me one row - I had to use a private array (no dimensions given in advance) and then redimension the array property and ACopy() into it. Didn't work any other way (that I've found).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform