>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
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