Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object Reference
Message
De
02/05/2001 16:44:32
Phillip Perkins
Technology Consulting, Inc.
Louisville, Kentucky, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00502719
Message ID:
00502758
Vues:
16
You should easily be able to do it this way:

oControlBizObj = thisform.cControlBizObj && for a local variable
thisform.oControlBizObj = thisform.cControlBizObj && for form property

Phillip


>Hi All
>
>How do you get an object reference of an existing object by just knowing the name?
>
>A control (cControlBizObj) property is "MyBizObj". MyBizObj is a bizness object on the form and is already created (it exist as an object). How can I can an object reference to the cControlBizObj and stuff it into a property (oControlBizObj) or a local variable?.
>
>Making some modifications to a subclass of cTextBoxL to do Field Level Validation. For the most part I have it working using BizRules class. However, in trying to make it more generic I have encountered a problem: control data belonging to a child bizobj. Have to know bizobj the control is bound to in order to call the proper business rule upon exiting the control.
>
>I hope this makes some sense.
>
>Thanks,
>
>Bob
"D'OH!" --Homer Simpson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform