Question : Dialog boxes

In procedure  i have many dialog boxes. How to exit from procedure if i click of any of cancel buton?

(itch dialog box have OK and CANCEL button)

Answer : Dialog boxes

Use the InputBox function when there is a default value that should be used when the user chooses the Cancel button (or presses Esc) to exit the dialog. If the application needs to know whether the user chooses OK or Cancel, use the InputQuery function instead.

if not  InputQuery('','name!', nameforme) then
  Exit;
// using nameforme as before
Random Solutions  
 
programming4us programming4us