>Hi All,
>
>Inside my init() of the form, I created commandbutton 'Command1' object by issuing the addobject command.
>
>This.addobject('Command1','CommandButton')
>
>Now, how would I add the code to call xMethod when user click on the button. TIA
You cannot add method code to the object method at runtime. There're other ways to acomplish what you want. See
-
How to programmatically add code to method? Thread #
774568 -
Re: Adding objects Thread #
774920
--sb--