In FoxPro 2.6 for Windows, if I initialize a variable in the setup section
of a screen, using, for example:
the screen knows it anywhere inside it: validation codes, cleanup code, etc.
Now I tried something similar in Visual Fox 6.0. In the Init event (and then
I tried in the Load event) of a form, I put the same famous nvar=10. I put
then a command button in that form, and in the Click event of that cmdbtn, I
put a simple instruction: wait wind str(nvar) nowa.
I tried to run the form, but when I clicked on the command button, an error
message was all that I received, saying that the nvar is unknown.
Please tell me, where should be this variables declared to be known along
the form ? Do I have to declare them as public or local? Is not enough the
old way of declaring the variables?