Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RETURN does arrays!
Message
De
19/10/2001 13:47:50
 
 
À
19/10/2001 11:41:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00570900
Message ID:
00571028
Vues:
27
>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
Fil
Voir

Click here to load this message in the networking platform