Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find a flaw in the logic
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01086027
Message ID:
01086168
Views:
21
>>>If SET UDFPARMS is set to REFERENCE, then the change of the value of the sent variable will still be a fact, no matter whether you're using LPARA or PARA.
>>>
>>>It may be true that in your case passing is actually by value, but that is not 'known' to the routine. The routine is expected never to influence the sent variable, no matter what the setting of UDFPARMS is. So, I stick to my opinion.
>>
>>From Help it's hard to figure out, if SET UDFPARMS affects object methods or not. It also doesn't say the scope of this setting. I wish Help would be more explicit.
>
>Well, you probably call this routine either with an object reference as 2nd parameter or without a 2nd parameter. So, in your case there will be no bug. I was merely referring to the general principle: Never change t-variables in the function/procedure/method unless that's explicitly expected according to the functional design.

Right, but this doesn't answer my two questions:

What is the scope of SET UDFPARMS and does this setting affect object methods as well as functions and procedures?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform