JRussell
10th January 2003, 12:33
Hi

This may be a stupid question to some of you but how do I create a

"Do you want to save? Yes/No" dialog box with a Cancel and Ok option.

I'm just a beginner and don't really have any programming manuals to help me.

Would really appreciate it if any guru can help!!

Thanks in advance.

:rolleyes:

Badre Alam
10th January 2003, 13:25
Hi, Russel

you can use the following code which will display a msg box as defined in your questions dictionary.


if ( ask.enum("tccom00001", tcyesno.yes, ret) = tcyesno.no) then
.............
endif


Rgds
Alam Badre

JRussell
10th January 2003, 13:43
Hi,

Thanks for the reply. I figured it out. I thought you could use a statement with sprintf etc, like in C++ but the ask.enum was handy.

Thanks again!!