Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot get ADDOBJECT to work
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00393920
Message ID:
00393983
Vues:
17
Mark,
Even though the Class is part of the project (I checked this) why do I still need to put it in a Path just for this command ?

Regards

Gerard



>This.MyColumn.Addobject('txtIncr','aabase01')
>
>
>Your class lib should be in the VFP search path. If you hard code a path, you will have problems when you distribute the app, unless the customer has the identical directory you do during development.
>
>>I am trying to use the AddObject command to add a control to a grid programatically, but it keeps saying it cant find the class.
>>
>>My Class (txtIncr) is in a Class Lbrary called AABASE01 in C:\KER and my app is in C:\DIS. I am able to use the classes from AABASE01 elsewhere in the application fine!!, for example dropping them onto forms etc.
>>
>>I'm tring the following:
>>This.MyColumn.Addobject('txtIncr','c:\ker\aabase01\txtIncr)')
>>This.MyColumn.Addobject('txtIncr','c:\ker\aabase01.txtIncr)')
>>
>>It sounds like I have this syntax wrong.
>>
>>Any help appreciated.
>>Regards,
>>Gerard
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform