According to the doc:
FrmDoDialog
Purpose Display a modal dialog until the user taps a button in the dialog.
Prototype Word FrmDoDialog (FormPtr frm)
Parameters frm Pointer to memory block that contains the form.
-> Result Returns the number of the button the user tapped (first button is
zero).
Comments A button�s item number is determined by its order in the alert
template; the first button has an item number of 0 (zero).
See Also FrmInitForm, FrmCustomAlert
However, I found the FrmDoDialog() return the button ID instead.
Any comment?
Thanks