Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing variable by ref gives problem
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
Passing variable by ref gives problem
Divers
Thread ID:
00381507
Message ID:
00381507
Vues:
47
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
Répondre
Fil
Voir

Click here to load this message in the networking platform