Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with Private Datasessions
Message
 
 
À
30/10/1998 07:42:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00152692
Message ID:
00152854
Vues:
29
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform