if 6=messagebox('Are you sure?,4,'Answer')
Troy
>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')
>
>
>I would like to delete the record if yes. How do I test whether yes or no has been pressed on the message box?
>
>Many Thanks