Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddObject from a Grids
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00402086
Message ID:
00402280
Views:
13
>I try to Add an Object to a column in a grid like:
>
>THIS.COLUMNS(THIS.COLUMNCOUNT).ADDOBJECT("myClass","Mysubclass")
>
>and the program gave me an error that said: Unable to find class .
>
>I include SET CLASSLIB TO ADDITIVE but still doesn't work.
>
>What i wanna do is change the regular textbox of the column with a textbox class i create
>
>Thanks,


Franciso,

I addition to the excellent code, Ed provided, you can look at Help for NewObject method, if you're using VFP6.0. It allows use to avoid set classlib hassle...
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform