Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object.writemethod only at design time
Message
 
 
To
13/08/2001 07:34:31
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00542910
Message ID:
00542943
Views:
19
This message has been marked as the solution to the initial question of the thread.
>>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform