Information générale
Catégorie:
Codage, syntaxe et commandes
No.
What I do is instance a Custom Class and return the object. So, if I have three values I need to return from the form, I would do something like:
Thisform.o = createobject("custom")
With Thisform.o
.addproperty("value1")
.addproperty("value2")
.addproperty("value2")
EndWith
Then, with all of the properties set based on entry in the form, you would have this code in the Unload()
Return This.o
>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.
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