Hi everyone,
How do you declare a variable in a VFP 6.0 form so that it is acceble in all the methods(procedures) in a form ? Currently, I am declaring the variables as PUBLIC in the Init event of the form but I know this is dangerous in the long run but it was my only way out. I know in Foxpro 2.6 I declare the variables in the Screen Setup Code and these variables are accessible in any procedure of the Screen.
Someone please help. I might end up with 1,000 PUBLIC variables in the long run.
Thanx,
Phita.
How do you declare a variable in a VFP 6.0 form so that it is acceble in all the methods(procedures) in a form ? Currently, I am declaring the variables as PUBLIC in the Init event of the form but I know this is dangerous in the long run but it was my only way out. I know in Foxpro 2.6 I declare the variables in the Screen Setup Code and these variables are accessible in any procedure of the Screen.
Someone please help. I might end up with 1,000 PUBLIC variables in the long run.
Thanx,
Phita.