AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Delphi window

Ein Thema von question · begonnen am 21. Apr 2013 · letzter Beitrag vom 25. Apr 2013
Antwort Antwort
question

Registriert seit: 17. Apr 2013
97 Beiträge
 
#1

AW: Delphi window

  Alt 21. Apr 2013, 07:40
Thanks for your reply,i am going to try it out
actually i am new to Delphi, therefore i have another question, i have read some tutorial to understand the difference between procedure and function, but still now i am not so clear. for example ,i have seen that, the Show is a procedure whereas ShowMdal is a function, It would be so kind of you, if you tell me the difference between them, Thanks in advance.
  Mit Zitat antworten Zitat
madtom

Registriert seit: 24. Feb 2005
Ort: Hamburg
115 Beiträge
 
Delphi XE7 Professional
 
#2

AW: Delphi window

  Alt 21. Apr 2013, 08: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 08:26 Uhr)
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:01 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz