Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I return an array from a form?
Message
De
18/01/1999 12:01:34
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00177095
Message ID:
00177223
Vues:
39
>Hi Uri,
>
>>Is there any way to return an array from a form?
>
>No. An array always has to be passed by reference. You can't RETURN by reference, only by value, ie the first element on an array. The easiest solutiuon would be to define an object that contains an array and return a reference to that object. If the form is modal, there are additional tricks.
>
>Christof

Christof, I realize that you know this, but for others.
If you pass the reference to the target array to the form, the form can populate the array and return a row count or some other info. I'm not so sure there is a need for returning the array itself. If you are worried about knowing how to dimension the array, have the form redimension the array to match the return data.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform