Thema: Delphi Boolean to String?

Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#2

Re: Boolean to String?

  Alt 3. Jan 2010, 17:04
Hi,

Delphi-Quellcode:
const BoolStr: Array[Boolean] of String = ('False','True');
var b: Boolean;
begin
  b := true;
  ShowMessage(BoolStr[b]);
end;
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."
  Mit Zitat antworten Zitat