Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_vfp.setvar help
Message
From
31/01/2000 14:34:59
 
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00325066
Message ID:
00325211
Views:
24
>>Are you expecting different behavior than PUBLIC gnEmployee would provide.

No. I guess that is exactly the performance I need.

Are you saying the scope of _vfp.setvar() definiations is only within the form which calls it?
This seems to contradict the idea that you are creating user defined properties on what I thought was THE main vfp applicatin object. I would expect any .setvar() calls to make the variables available to all forms, or procedures ANYWHERE within the current vfp session.

Is this also true for PUBLIC declarations?

Must you declare PUBLIC in the main .prg for your project, for it to be available to all forms?

Must you also re-delcare any PUBLIC variables you wish to reference in procedures, so that they will reference the already-declared public variables, instead of creating new local-to-the-current-form public variables?

This has always confused me.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform