If sysConfirm("Are you sure you wish to quit this process", "Confirm Quit").You don't need to worry about the return numeric values of Messagebox. Even if you miss out the the message and caption params it will default to "Are you sure?"
LPARAMETERS tcMessage, tcCaption LOCAL lcmessage, lcCaption, llYesNo If EMPTY( tcMessage) lcMessage = "Are you sure?" Else lcMessage = tcMessage EndIf EMPTY( tcMessage) If EMPTY( tcCaption) lcCaption = "Confirm" Else lcCaption = tcCaption EndIf EMPTY( tcCaption) llYesNo = IIF( MESSAGEBOX( lcMessage, 36, lcCaption) = 6, .T., .F.) Return llYesNo>I have a message box with Yes and No buttons to delete a record in a grid.
>MESSAGEBOX("Are you sure you want to delete this contact?",4,'Delete contact') >>