Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing an array to a form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00875002
Message ID:
00884422
Vues:
10
>You cannot "attach" array to a property but you can store it into form's array property.
DIMESION MyForm.aProperty[1]
>ACOPY(aArray, MyForm.aProperty)
Hi Sergey,
I'm just getting around to using this idea...but cannot make it work. :-(

Any comments about the below? I've created a form, added a property named "MyArray", placed a command button on the form, put this code in the click event of the command button
DIMENSION aTest[3]
aTest[1]="One"
aTest[2]="Two"
aTest[3]="Three"

DIMENSION ThisForm.MyArray[3]
ACOPY(aTest, ThisForm.MyArray)

WAIT WINDOW ThisForm.MyArray[1] +CHR(13) +ThisForm.MyArray[2] +CHR(13) +ThisForm.MyArray[3]
I get error saying "'MYARRAY' is not an array" on the DIMENSION ThisForm.MyArray[3] command. How do I create a form property of Array type?

Thanks for any ideas,
Steven-
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform