Information générale
Catégorie:
Codage, syntaxe et commandes
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
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