Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Containers not Forms as the main user interface...help!
Message
De
26/08/2008 21:48:28
 
 
À
25/08/2008 14:19:58
Scott Malinowski
Arizona Fox Software LLC
Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01315051
Message ID:
01342083
Vues:
26
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform