Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Switching DataSession's
Message
De
13/12/2004 13:39:28
 
 
À
13/12/2004 13:34:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00968641
Message ID:
00968843
Vues:
7
Oh.. I'm sorry, should've mention this. You can only create "Session" object by "DEFINE CLASS" (coded manually). It may not reside in the VCX. Or (I think) you can use Class browser, cut the code there and paste into a PRG.


>Hello Herman
>
>thanks for you suggestion.
>
>it is a custom class. since this is a class contained in a .vcx i had to hack the class to change it to a session class. still would not work.
>
>
>>Hi Gunnar,
>>
>>Did you make the object as "Custom" or "Session" ? If you create as Session, you can switch the ds-id directly from the object. Please be aware that if this object has a data-bound controls, the controls could lose their data-sources. You can read more in "DataSessionId Property" from VFP help
>>
>>
>>Define class myClass as Session
>>    Procedure Set_DS
>>       This.DataSessionId = _Screen.ActiveForm.DataSessionId
>>
>>       ** or
>>
>>       Set DataSession to _Screen.ActiveForm.DataSessionId
>>    EndProc
>>EndDefine
>>
>>
>>Regards
Herman
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform