HP Forums
MSGBOX with OK_Cancel - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: MSGBOX with OK_Cancel (/thread-4255.html)



MSGBOX with OK_Cancel - salvomic - 06-29-2015 10:08 AM

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


RE: MSGBOX with OK_Cancel - DrD - 06-29-2015 10:41 AM

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-


RE: MSGBOX with OK_Cancel - salvomic - 06-29-2015 10:54 AM

(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