Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can u shed some light on this weird class instantiating
Message
De
21/06/2004 18:33:23
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00915837
Message ID:
00915843
Vues:
17
Rajani,

First, it seems you can cut straight to adding the object, assuming that the name of the class in the VCX is ctrlHeight.
thisform.newObject('cntheight','ctrlheight','D:\VSSLocal\vip\ctrHeight.VCX')
But it appears from your example that 'cntHeight' is a property inside the class. If that is true, you might want to:
thisform.newObject('cnt','ctrlheight','D:\VSSLocal\vip\ctrHeight.VCX')
thisform.cnt.cntHeight = .t.
HTH.

>i created class (class name is ctrHeight.VCX) with container,a label ,commandbutton a textbox in it.
>when i add this to this a form from toolbar everything works fine.
>but when i add this control thr code like following
>
>thisform.AddObject('cnt','container')
>thisform.cnt.visible=.t.
>
>thisform.cnt.newObject('cntheight','ctrlheight','D:\VSSLocal\vip\ctrHeight.VCX')
>thisform.cnt.cntheight=.t.
>
>i am getting following error
>"Error instantiating the object "txvalue" (actually it is a textbox)"
>i am wondering what i am doing wrong here.
>
>i just found when i add this control from toolbar and add another control thr code
>like abv everything working fine???
>what i am missing here??
>many thanks for ideas
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform