Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data session specific SETtings
Message
From
16/05/1997 14:15:39
Bob Lucas
The WordWare Agency
Alberta, Canada
 
 
To
15/05/1997 13:17:27
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00032452
Message ID:
00032614
Views:
39
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?
Previous
Reply
Map
View

Click here to load this message in the networking platform