Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning an Array from a function
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Returning an Array from a function
Miscellaneous
Thread ID:
00001252
Message ID:
00001252
Views:
92
Im trying to have a function return an array. I cant just:

DIMENSION aArray[30]
RETURN aTheArray

Because the the array will be released when the function ends. If I pass the array by refeence and redimension it, it will also be released when the function ends. I dont want to deeclare the array PUBLIC, because of there is a chance that the name may be used elsewhere in the application.

How does one do this?

Thanks,
JSKG
Next
Reply
Map
View

Click here to load this message in the networking platform