Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return Array
Message
From
22/11/1999 09:04:09
 
 
To
22/11/1999 08:47:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00293849
Message ID:
00293854
Views:
24
You could instead pass an array to the procedure by reference and modify it in the proc.
DIMENSION laArray[1]
MyProc( @laArray )

FUNCTION MyProc
LPARAMETER taArray
taArray[1] = 3
RETURN
or you could pass an object (with an array property) instead. The object property is passed by reference, btw.

> How could I return an array from procedure? I tried
>RETURN laArray and RETURN @laArray... but failed....
Previous
Reply
Map
View

Click here to load this message in the networking platform