How can i learn the name of button that has been clicked?
Code: Select all
Sub butPlus_click
Dim field as Object
theNameOfButton = ?????
field = dialog.getControl("num_"+theNameOfButton)
field.Value = field.Value + 1
End Sub
Code: Select all
Sub butPlus_click
Dim field as Object
theNameOfButton = ?????
field = dialog.getControl("num_"+theNameOfButton)
field.Value = field.Value + 1
End Sub
Code: Select all
Sub Any_Button(oEvent)
Dim str as string
Dim oCaller as object
oCaller=oEvent.Source.Model
str=oCaller.Name
Print "You pushed the button named: ", str
end sub