Archive

Thursday, 16. March 2017

1
vote
Vote UpVote

(True = 1) and (True = ‘-1’) ?

Te Waka o Delphi – It has been observed that the Delphi documentation states that the constants True and False have the values 1 and 0 respectively, not the -1 and 0 that the default string conversions apply. This does actually make sense but also lays a trap for the unwary. True, True, Wherefore Art Thou -1 ? In the ...
Details Favorite? Off-Topic? Deltics @ 20:03
1
vote
Vote UpVote

Anatomy of a utility function: BoolToStr()

Te Waka o Delphi – Jaap Van Goor was asking on FaceBook about some seemingly strange behaviour when obtaining string representations of Booleans using the Delphi RTL, which led me to revisit some familiar (and some not so familiar) old Delphi ground and take a look at the area involved in further detail. First of all, ...
Details Favorite? Off-Topic? Deltics @ 06:03
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)