>set classlib to readtest
>x = createobject("readtest.readtest")
>messagebox(x.readmethod("init"), "Init Code")
>messagebox(x.readmethod("justcode"), "Custom Method Code")
>
>I have read that ReadMethod works only in Visual Classes. But I have not found any other limitations for it. My class is not programmatic, so I assume ReadMethod should work. But it does not.
>
>Any suggestions?
>TIA.
>Dmitriy Zaslavskiy
ReadMethod was intended for builders and wizards, so it's supposed to work in design mode. BTW, I'm not sure that createobject("readtest.readtest") is correct syntax - I've never seen it, unless it's from OLE class. Does your object really get instantated?