HP Forums

Full Version: MSGBOX with OK_Cancel
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi,
what's the correct syntax for MSGBOX() with OK, Cancel keys?

With
Code:

ch:= MSGBOX("Another calculation?", OK_Cancel);
IF (ch<>0)  THEN changeData(); END;
I get syntax error...

Thanks!
Salvo
Hi Salvo,

Use MSGBOX("Your string",1) to put Cancel and OK in the soft keys.
Use 0, to omit the Cancel soft menu item.

-Dale-
(06-29-2015 10:41 AM)DrD Wrote: [ -> ]Hi Salvo,

Use MSGBOX("Your string",1) to put Cancel and OK in the soft keys.
Use 0, to omit the Cancel soft menu item.

-Dale-

ok, thank you, it works!

Salvo
Reference URL's