Delphi

New Tip: TBooleanHelper.ToString and TUseBoolStrs enumeration

Among the native type record helpers that were introduced in the Delphi RTL a few years back, there is one for the Boolean data type. It has a few methods you can apply to a Boolean variable, includingToString. This is the class helper definition: If you callToStringon a Boolean variable you get 0 or -1 depending on the value. In other…
Read more