Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array As a Property
Message
 
À
20/04/1998 15:03:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00093460
Message ID:
00093470
Vues:
28
>I have created an array, local in scope, within a method of a form. Now I want to save the array to a property of that form so that I can access it from other methods. I tried:
>THISFORM.aArray = aMyNewArray.
>Didn't work--When I look for THISFORM.aArray[1] I am told it isn't an array.
>
>What am I doing wrong??
>
>TIA.
>
>John

Assuming that you've created the array as a property of the form, you next would need to use ACOPY() to copy the contents of the local array to it. Assigning it as above will store the value of the first array element in the entrire array.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform