How can I use global variables Through out the application and forms (other than creating a property in the application object) like gvUSSER,gvREGION,gvDEPT etc...is there any other way, If yes please give a clue
Thanks
Sebastian
Thanks a lot Ramani and Chris,Since I am using VFP 6 I can Use PUBLIC, GLOBAL is not working with me VFP6.
Any way PUBLIC will more than enough for me.
Once again Thanks alot.
Rgds
OraWiz
Please read Global (command) as PUBLIC.
GLOBAL is not a command in VFP.
PUBLIC gcUSSER,gcREGION,gcDEPT
PUBLIC gcUser, gnUserNumber, glIsAllowed
I have to mention this so that future users dont get misguided. 'Global' is understood but the syntax has to be PUBLIC.
Just got into the trap that OraWiz called it global. Shhhhhhhh. Thanks Orawiz for coming back on this thread. I feel putting a star to you for coming back and letting us know and striking the mistake. The benefit is to the future users who might trod these threads and on their behalf atleast I should cast this vote.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.