General information
Category:
Coding, syntax & commands
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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only