>When is a good time to use the WriteMethod Method. The help file says it is only available at Design Time. I have tried to use the method and I get the error "Object Does Not Exist". How do I use this Method.
I've just started using this recently to create my own builders. What I have found so far is that first you need a variable reference to the object you wish to write method code to. This object is usually a control in the form or class designer.
You can create a variable reference to the control by placing your mouse over it in the designer and then in the command window type:
x=SYS(1270)
"X" now references the control in the designer. From here you can issue the "WriteMethod" method to place code into a method/event
ie. Place mouse pointer over a command button in the form designer. Hit
to move cursor into command window.
x=SYS(1270)
x.WriteMethod("Click","WAIT WINDOW 'Testing...'")
If you have the properties window up, you can watch the method change from "[Default]" to the bolded "[User Procedure]".
I would give my left arm to be ambidextrous!