General information
Category:
Coding, syntax & commands
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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only