Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding array property
Message
 
À
26/03/2000 19:53:32
Ian Johnston
Computer Software Solutions
Woodland, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00350575
Message ID:
00350592
Vues:
20
Ian,
Fred had the right information. However often you don't know the exact dimensionsof the array. If that's the case, then add the array as "MyArray(1)" and use the DIMENSION command to resize the array when you know how much data to put into it.

Another point that many of us have stumbled over: If you are populating the array with a SQL-Select statement, you can't call the form property as the array in the SELECT statement. You need to write the array to a variable SELECT ..... into array aMyTemp and then use aCopy() to copy the array into the form property. Don't forget to redimension the form array first.

HTH
Barbara

>How do you add an array as a property to an object when building a class ?
>
>TIA
>
>Ian
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform