Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object.writemethod only at design time
Message
From
13/08/2001 08:49:00
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00542910
Message ID:
00542948
Views:
18
>>>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.

Thanks, Sergey,

Think I see the point. I think I'm working in opposite direction ; my builderprogram creates an instance of the form (which is runtime), changes it and then executes a object.saveas(), but what you propose is start from the formdesigner (which is designtime) and put my builder on top of that. Correct me if I'm wrong ...

Thanks again.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform