LS Dialog Box - can't get cancel button

I am trying to get the “Cancel” button to display on the dialog box so I can problem the option to cancel the process if it contains the wrong data. My code below will not show the cancel button, and cannot seem to find the corrent combinations. Any help appreciated. Thanks,

Success = workspace.DialogBox( “DialogIRES”, True,True,False,True,True,True, “IRES Candidate Selected”, doc, True,False,False )

	or

Success = workspace.DialogBox( “DialogIRES”, True,True,True,True,True, “IRES Candidate Selected”, doc, True,False,False )

Subject: LS Dialog Box - can’t get cancel button

Hi, you need to change your True parameter before “IRES Candidate Selected” to False eg.

Success = workspace.DialogBox( “DialogIRES”, True,True,False,True,True,False, “IRES Candidate Selected”, doc, True,False,False )

From designer help:

readOnly

Boolean. Optional. Specify True to prohibit writing to the dialog box (for example, if you are using the dialog box to display a help screen). Otherwise, the dialog box is read-write. This option makes noCancel true.

Hope that helps

Cheers

Subject: RE: LS Dialog Box - can’t get cancel button

Will this code did provide the Cancel button, but I lost the “OK” button. I actually need the “OK” button to accept the data from the Dialog box, and the “Cancel” button to cancel the data from the Dialog box and allow another end the process (actually go back to the previous process).