Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Containers not Forms as the main user interface...help!
Message
From
26/08/2008 21:48:28
 
 
To
25/08/2008 14:19:58
Scott Malinowski
Arizona Fox Software LLC
Arizona, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01315051
Message ID:
01342083
Views:
25
It has been my experience that if I use the objects AddObject/NewObject method, I cannot get a datasession to work the way I think it should. However, if I create a property on the Object I want to have the separate datasession (including a custom object) and assign the datasession object to this property, then I can get it to work the way I think it should. I'm always careful to include in the Destroy method a line of code that will store NULL to the datasession object property so there are no dangling object references. Unfortunately I'm not where I can lay my hands on the exact lines of code but as I recall after you say Container.objDataSession = CREATEOBJECT('session'), you then need to tell this instance to setup a private datasession. After that as you click into the object, the datasession should auto change. If not you can always add some got focus code to set the objDataSession to the right one.

You can email me at lhdsystems@bellsouth.net if you need some sample code. Please be sure to put something in the subject line about VFP and Universal Thread so I won't delete the message as spam.

Stewart Crisler
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform