Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RETURN does arrays!
Message
From
19/10/2001 13:47:50
 
 
To
19/10/2001 11:41:25
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00570900
Message ID:
00571028
Views:
28
>I didn't notice this in the "New....." section or the "Enhancements..." section of the VFP7 documentation, nor does the RETURN Command write-up mention it, so I thought I'd mention it here as it seems quite important to me.
>
>An array can be specified as eExpression of a RETURN command provided that:
>1) the array was passed by reference into the function in the first place;
>2) the array is still in scope when the RETURN executes.
>
>Found this reading "What's New in Visual FoxPro 7.0" from Hentzenwerkes.

Actually, Jim, your #1 is wrong. Don't pass the array to the function. #2 is the key point and is why this is really most appropriate to methods rather than functions. Otherwise, the code you have to write follows some bad practices.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform