Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Boolean to String? (https://www.delphipraxis.net/145518-boolean-string.html)

Prakti16 5. Okt 2016 14:27

AW: Boolean to String?
 
ok danke ich will eigentlich nur damit was testen bin noch Anfänger aber ich checke oft nicht alles zu hundert Prozent und dann suche ich halt Möglichkeiten und teste sie um mein Programm zu verbessern danke nochmals

Jim Carrey 5. Okt 2016 16:01

AW: Boolean to String?
 
Boolean zu Real?
Was soll denn da rauskommen deiner Meinung nach? Und warum real?

himitsu 5. Okt 2016 16:36

AW: Boolean to String?
 
Man kann Bool zu Int umwandeln und da Int eine Untermenge von Float/Real ist, passt es dann.
Und rückzu, wie bereits erwähnt, auf "nicht 0" prüfen, also
Delphi-Quellcode:
Bool := IntOrReal <> 0
.


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:09 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz