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

I see. Was the example just done the way it is to confuse, or is there a purpose for doing so that I am missing? On reading more carefully I see that the in/out arrays are different, but why the "@" in both cases?


Jim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform