Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global variable dies when sent as a parameter??
Message
From
25/01/1999 13:10:18
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00179903
Message ID:
00179906
Views:
28
If it's a global var, why are you sending it as a parameter?
Wouldn't the procedure have it available already?
Also, is the parameter name the same as the global var? If so PARAMETERS makes it private, which may kill it; LPARAMETERS makes it local, which will kill it.

>Hi,
>
>In VFP3 as well as in FPW26 it seems to be the case that if I send a global variable as a parameter to a procedure, that global variable is dies.
>I have the UDFPARMS set to VALUE and I thought that the procedure would not be able to modify the variables used to send values to the procedure, and even less able to kill it.
>
>If I have missed something it would make life a little easier...
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform