General information
Category:
Coding, syntax & commands
Hi John.
>> How could I return an array from procedure? <<
If you find that you need to do this quite often, you could create a paramter class and add the property aParameters[1] to the class. The, just put this code in its init:
LPARAMETERS taParameters
*** Copy array passed by reference, before it goes out of scope
=ACOPY(taParameters, THIS.aParameters)
Then whenver you need to return an array from anay procedure, all you need to do is:
RETURN CREATEOBJECT('< Parameter Class Name >', @< Array Name to return >)
Marcia
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