Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I return an array from a form?
Message
 
À
18/01/1999 05:21:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00177095
Message ID:
00177099
Vues:
36
>Hi everybody!
>
>Is there any way to return an array from a form?
>For example, I call a form with...
>
>local laArray[10],laRetArray[10]
>do form Form1 with laArray to laRetArray
>
>... and in its Init event do the following:
>thisform.aItems = taParamArray
>
>( aItems defined as aItems[10,0] )
>When I, in form's Unload event trying to
>...
>...
>return thisform.aItems
>
>it fills the laRetArray with first item's value
>
>Any suggestions?
>
>TIA.
>
>Uri.

You need to put the '@' sign at the beginning of one of the arrays (to tell it to send the reference). Probably the 'to' array.

What you do is send the array as @array and you can then change the values. Have a play with it.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform