Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Addobj
Message
De
26/04/1999 13:02:34
 
 
À
26/04/1999 12:22:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Re: Addobj
Divers
Thread ID:
00212181
Message ID:
00212203
Vues:
23
>>>I want to conditionally add objects to a page on a pageframe and the following does not work:
>>>
>>>*in activate
>>>oField=addobject('field1','kbafield')
>>>oField.top=100 && error ofield does not exist!
>>>
>>>Can anybody tell me what I am doing wrong and how this should know in what library kbafield is located??
>>>
>>>Peter
>>
>>Firstly, it should be This.AddObject (if you do it in Page.Activate). Also, beware that this way you may add objects on every activation.
>>You may use SET CLASSLIB TO mylibrary to specify library you need.
>
>I just checked my code and I have this. in it. I added set classlib.. and it still does not create a control as needed.

AddObject creates control with Visible=.F., i.e. it's your responsibility to set it to .T. after it's successfully created.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform