Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data session specific SETtings
Message
From
15/05/1997 13:57:38
 
 
To
15/05/1997 13:17:27
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00032452
Message ID:
00032457
Views:
38
>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?

I'm not 100% sure but maybe when you run a method of oApp it uses the Default datasession rather than the form's. You might consider adding the Desset() method to your form class instead so that it uses the same datasession as the form.

I guess I would try to keep properties and methods that are specific to a certain class, within it's class structure rather than one common application object. Use your app object for global settings, object interaction etc.

-Doug-
Previous
Reply
Map
View

Click here to load this message in the networking platform