Registriert seit: 24. Feb 2005
Ort: Hamburg
115 Beiträge
Delphi XE7 Professional
|
AW: Delphi window
21. Apr 2013, 09:19
Hy,
- a function gives you a result value, if the work is done,
- a procedure doesn't give you anything back (similar to the "void" in C++).
You can do something with the result of the funtion, for instance ShowModal returns the "ModalResult". With the ModalResult you can see in which way the modal form was closed, may be by pressing the OK-Button (mrOK) or the Cancel-Button (mrCancel) (see help).
This values you can set in the Object Inspector for the Buttons of your modal form.
Thomas Delphi Programming
Geändert von madtom (21. Apr 2013 um 09:26 Uhr)
|