Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Chinese toolbar names within capp.capplication class (C
Message
De
31/08/1998 14:54:15
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00123109
Message ID:
00131624
Vues:
32
Thanks Rick, that's really cool.


**--** Steve

>
>An approach I developed to insulate strings (and MsgSvc) is to do the following:
>
>DEFINE CLASS INTLDataSession AS Form
>DataSession = 2 && Private Datasession to insulate INTL tables
>
>PROC Init()
>     SET PROC TO ADDPROP5.FLL ADDITIVE
>     this.AddObject("oINTL","INTL")
>     AddProp(_SCREEN,"oINTL")
>     _SCREEN.oINTL = this.oINTL
>ENDPROC
>
>PROC Destroy()
>    _SCREEN.oINTL = .NULL.
>ENDPROC
>ENDDEFINE
>
>Objects run in the datasession they are instantiated in. Therefore I create a private datasession within a form, add the INTL object to it: it is now in its own private datasession. I use AddProp to create a property on _SCREEN.oINTL and then point it at the INTL object on the form: INTL behaves as normal because it is still accessed as _SCREEN.oINTL.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform