>>What am I doing wrong here , or in other words how can this be done 'at design time' :
>>
>>oMyForm=CREATEOBJECT("myformclass")
>>omyform.writemethod("init", "rem this is a remark")
>>
>>I get he message that writemethod is only available at design time. I'm willing to do so, but .writemethod is by it's nature at design time, isn't it ?
>
>Oops, I meant : ... by it's nature at run time ...
No, you're mistaken. Foxpro help specifcally states that it's "available at design time only". To use it you have to open form in Form Designer, select it and than run your builder. In the builder you can use ASELOBJ() to get reference to the form.
--sb--