Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proc/Func
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00366590
Message ID:
00366611
Vues:
20
>> The main difference is that, by default, parameters are passed to procedures by reference but are passed to functions by value. You can override this behavior, see UDFPARMS for more info. Both can return a value.


You can also override the default aprameter passing without using UDFPARMS by using ()'s to force pass by value and @ to force pass by reference.
MyFunc(@Parm1,Parm2)  && Parm1 is passed by ref while parm2 is by value

DO MYFunc WITH (parm1), Parm2  && Parm1 is by value and parm2 is by ref
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform