Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass an array and return array from a form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00759681
Message ID:
00759907
Vues:
16
John,

My form tries to return 27 values in an array, but the calling form sees the same value in all elements upon return.
The cursor would work with a bit of tweaking since there is a mixture of field types (character, logical and integer).
Tks for the idea.

>>How would I pass an array to a form and then return the array to the >calling form?
>>I would prefer to not use a variable that would be available after the >calling form is released.
>
>Hi Allan
>Because forms don't return parameters I use cursors instead
>CREATE CURSOR mycursor (someval C(10))
>*// populate the cursor
>DO FORM myform
>*// Use and fill the values
>Thisform.Release
>*// The cursor is populated and if you want the values in an array
>SELECT someval FROM mycursor INTO ARRAY myarray
>SELECT mycursor
>USE
>Cheers
>John
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform