Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data session specific SETtings
Message
De
16/05/1997 14:15:39
Bob Lucas
The WordWare Agency
Alberta, Canada
 
 
À
15/05/1997 13:17:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00032452
Message ID:
00032614
Vues:
37
Hi Jarod;

When you call the application object's method, the datasession switches to the datasession of the application object which will be the default datasession.

In order to have the behaviour you want, (the settings to occur in the datasession of the form) you will have to create an object that exists in that datasession.

One handy way of doing this is, is to do an ADD OBJECT of a datasession object in the Load of your form (it might use properties from your global object) but have the init of the object return FALSE. This means the object will never be created (it isn't needed anyway) but it will have executed its Init code which would have set all the settings!

Bob



>I have begun to use a application object to store all of my framework procedures but
>have found that one of my procedures does not function from within an object.
>
>This procedure is the one that I call from forms that use a private datasession to
>set all those private datasession specific settings (i.e. set talk). I make a call
>to the procedure oApp.dessset(), but nothing happens. If I DO dessset from the
>form LOAD() method it works fine.
>
>I would really like to wrap this procedure into my application framework object. Is
>there a special way that I have to call it to make it work?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform