Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What means parameters
Message
De
29/04/2007 11:25:43
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01220881
Message ID:
01220897
Vues:
20
in a prg you can choose between

Function myfuncion(parameter1, parameter2)
...
Endfunc

or

Function myfunction()
lparameters parameter1, parameter2
...
Endfunc

In a visual class you just edit the inner portion between Function()...Endfunction. Therefore you have a parameters/lparameters line in vfp. Check the help.

The error you got can happen, if you call a funtion or method with more parameters, as it has defined. And yes, lparameters defines variables you can use and change within the function. Difference between lparameters and parameters is, those variables are local with lparameters and private with parameters. See help on LOCAL and PRIVATE and variable scope in general to learn the difference.

Bye, Olaf.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform