Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proc/Func
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00366590
Message ID:
00366611
Views:
21
>> 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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform