Change it to the following: xxx :=3D SystemMessageBox(WindowHandle, "Exit course?", "Confirmation", = 33) -- 1=3DOK, 2=3DCancel if xxx =3D 2 then exit Quit() Joe Ganci www.dazzletech.com / www.authorware.com Join us on the E-Learning Cruise Conference May 10 - 17 in the = Caribbean! > -----Original Message----- > From: Jerome Davin [mailto:jerome.davin@xxxxxxxxxxxx] > Sent: Wednesday, October 02, 2002 12:38 PM > To: ntaug@xxxxxxxxxxxxx > Subject: [ntaug] AW 6.5 SystemMessageBox >=20 >=20 >=20 > I am using the SystemMessageBox variable to confirm the user=20 > does indeed > want to quit the application. >=20 > I have this in a calc icon: > SystemMessageBox(WindowHandle, "Exit course?",=20 > "Confirmation", 33) -- 1=3DOK, > 2=3DCancel > if xxx =3D 2 then exit > Quit() >=20 > So basically if they click OK, then Quit() happens, and if=20 > they click Cancel > they go back to the CBT. >=20 > What variable hold the value of the button clicked (i.e. the=20 > 1 or 2 in this > case) >=20 > If I am doing this wrong and there is an easier way let me know :) >=20 > Thanks >=20 > Jerome >=20 >=20 >=20 >=20 >=20