PDA

View Full Version : How can I send a parameter to a custom button click event?



hmischel@diligentsystems.com
2016-05-24, 19:23
I have a custom commandbutton class that I want to reuse. Meaning, I have several buttons created using "Mybuttons".
I want to pass a unique id to click event so that I know which button was clicked.

Something like below.


define class mybuttons as commandButton
proc click( param1)
do case
.....
endcase


endproc
enddefine


Thanks

Herb

barrymavin
2016-05-24, 21:14
Hi Herb,

Just create your button and assign it a unique id. In the click event you can then reference this.id.

hmischel@diligentsystems.com
2016-05-25, 09:31
ahhh....this.name works just fine.

Thanks Barry.