>>I have create "print .scx" and I have written code, now I want before the printing the Message Box will appear and ask "DO YOU WANT TO PRINT" YES OR NO. if yes I want print the record, if no means exit from print form.
>>
>>How to write code?
>Hi Muthu.
>
>All you need to do is wrap your printing code in something this -
>
>if MessageBox("Do you want to print?", 4+32+256, "Confirm Print") == 6
>Printing Code here
>EndIF
>
>If you want it to default to Yes then leave the +256 out.
>
>Ian Simcock.
>
Better yet, include FOXPRO.H, use MB_YESNO, MB_DEFBUTTON2, and IDYES and leave the magic numbers out of it. It works the same either way but which is more readable?