Answer» Greetings EveryOne (Or Should I Say AnyOne?___)! Please help me with VFP. Here's my question: How do I declare a variable to make it Global WITHIN the Form? Thank You very much.I personally haven't used foxpro very much- but, if MEMORY serves, a FoxPro form is simply a class, and all classes can have variables declared in the "declarations" section (before procedures). I don't know the syntax, HOWEVER. (I assume you know how to declare a variable though, of course.)hello, I use fox pro to write all my commercial projects and programs. And i am happy to find someone who uses it.
To declare a global variable, u can do that by TYPING: PUBLIC variableName either in the INI Event of the for or module or control init or any where, but for easy sake, u can do that in the LOAD event and INIT event.
Pls, mail me if u have any problem, i am an expert in FoxPro. [email removed to prevent spam] I like to be UR friend byeee. Guten MORGEN, Handsomee. Sorry I couldn't E-Mail you, your address is hidden for me. As for your answer, I can declare the global variable. I cant make it global for all, for example, methods of ONE single form without throwing it to ALL forms, progs etc of my project. Or maybe I do not understand something?
|