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:
00393963
Vues:
15
>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.


AddObject() takes at a minimum the name to assign to the control, and the name of the class that it instances. It expects to find the class in one of the class libraries given in the SET CLASSLIB setting or from a non-visual class embedded in a procedure file opened by executing code or specified as a procedure file with SET PROCEDURE TO.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform