Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What means parameters
Message
From
29/04/2007 11:25:43
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01220881
Message ID:
01220897
Views:
26
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
Map
View

Click here to load this message in the networking platform