Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use refbizobj from rulesclass
Message
De
22/01/2002 10:17:33
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
How to use refbizobj from rulesclass
Divers
Thread ID:
00608413
Message ID:
00608413
Vues:
43
Can anyone help me out?
I have a situation where I need to call a method of a bizobj other than the one associated with the rulesclass method I'm working with. I would like to check the refbizobj to see if the bizobj I need is already instantiated on the host form before instantiating it again for my specific use. Here is the error message and rulesclass method code I am using:


Error: 1938
Message: Object is not contained on a Form
Code: THIS.oglcontrolobj=THISFORM.refbizobj.GET("glcontrolobj")


*---------------------------------------------------
*-- Insure the GLControlobj is avalable
*-- Create it if not already instantiated somewhere
*---------------------------------------------------
IF NOT TYPE('this.oglcontrolobj') == 'O'
THIS.ADDPROPERTY("oglcontrolobj",.NULL.)
IF THIS.obizobj.IsFormHost()
THIS.oglcontrolobj=THISFORM.refbizobj.GET("glcontrolobj")
ENDIF
IF NOT TYPE('this.oglcontrolobj') == 'O'
THIS.oglcontrolobj=CREATEOBJECT("glcontrolobj")
ENDIF
ENDIF



Thank you,

Gary Pike.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform