Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement