Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing variable by ref gives problem
Message
From
16/06/2000 12:58:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
Passing variable by ref gives problem
Miscellaneous
Thread ID:
00381507
Message ID:
00381507
Views:
48
Hello,

In FoxPro 2.6 I have a problem that I do not understand.
I have a screen, and in the screen setup code I define a variable myVar = "".
This myVar is the value of a textbox control on the screen.
On the screen itself there is an optiongroup with a valid code, where I call a function, passing MyVar by reference like myFunc("JOBS", @myVar)
In the moment the valid is triggered, I get an error "Variable not found", and the error line refers to the textbox control of the screen where I show myVar. Debugging the read clause of the textbox gives datatype "U" for the variable, but in the function call the variable is there. It seems that the variable 'goes lost' for a short moment.

Does anybody have an idea what goes wrong here?

Any help highly appreciated!
Christian Isberner
Software Consultant
Reply
Map
View

Click here to load this message in the networking platform