Jump to Real's How-to Main page

Detect which button is clicked in a dw (PB6)

[ButtonClicked event]
string button_name
button_name = dwo.name
CHOOSE CASE button_name
   CASE "cb_ok"
    MessageBox("Testing", "cb_test is clicked")
   CASE "cb_cancel"
    MessageBox("Testing", "cb_test2 is clicked")
END CHOOSE

If you find this article useful, consider making a small donation
to show your supportfor this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2005
[ home ]