Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with Private Datasessions
Message
 
 
To
30/10/1998 07:42:17
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00152692
Message ID:
00152854
Views:
28
>Hello,
>
>I am using Visual FoxPro 6.0. I am using private datasessions. The problem is that I can not use methods from the parent class, because they just won't work.
>
>For example: I have a form in a private datasession with a couple of tables open. Now I want to run a method from the parent class, but that method is unable to find the tables.
>Another example: I have to define my SET-commands in the init of the dataenvironment everytime that I use a new form in a private datasession. I can not run a method in the parent class to do that, because it does not work.
>
>Is there a way to make these things easier?

In my form baseclass, I set all the environment parameters that are scoped to the datasession (see Set DATASESSION in VFP help for all the set commands that are scoped -- do not forget to include SET DATABASE either).

In your methods, you can issue a DODEFAULT command if the parent code you are trying to execute is the same method name (e.g., issuing DODEFAULT in INIT will fire the INIT code in the parent.). Otherwise you have to use the scope resolution operator (::) to fire parent code (see VFP help for :: explanation).
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform