>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement