Here is an example code to create a YES / NO dialog box:
main.m393 chars13 lines
In the questdlg
function, you specify the question you want to ask the user and the two possible responses: Yes and No.
Once the user selects his answer, the code switches to the corresponding action using a switch statement.
You can replace the disp
statements with your own code to perform the desired actions based on the user response.
gistlibby LogSnag