Can anyone tell my the code for a question dialog box ?
Question Dialog Box How ?
Depends on which version of OPL you're using. For Symbian 6.0 there's an AFConfirmationDialog routine in AppFrame.opx you can use. For older version you can simply use something like:
dINIT "Confirmation"
dTEXT "Do you really want to do this?"
dBUTTONS "Yes", %y, "No", -%n
IF DIALOG=%y
REM really do it
ENDIF
I'm developing for my 9500. So I have the following code:
AFConfirmationDialog%😞"quit ?"😉
But it does not run !
It works on the 9210. I've used it a lot and works like a charm. Maybe AppFrame.opx needs to be rewritten for the 9500 (different location for a DLL or internal function renamed?)
Probably needs rewritten for 9500 - it's early days for that runtime. I'd go with the standad dINIT...DIALOG construct. That means it will work on the UIQ devices and (when we fix it) the Series 60 runtiem ass well (whcih currently doesn;t have dialog box support)