>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.