Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return Array
Message
From
22/11/1999 10:16:50
 
 
To
22/11/1999 08:47:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00293849
Message ID:
00293889
Views:
30
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
Map
View

Click here to load this message in the networking platform