Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
Re: Ja / Nein Abfrage
8. Nov 2007, 14:50
Hi,
Ganz einfach:
Delphi-Quellcode:
var mr: Cardinal;
begin
mr := MessageDlg('Message',mtConfirmation,[mbYes,mbNo],0);
if mr = IDYES {IDNO} then
// ...
@DeddyH: Die MessageDlg function ist da ein bisschen komfortabler finde ich.
Gruß
Neutral General
Michael "Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
|
|
Zitat
|