Converts a string value to its Boolean representation.
function IndyStrToBool( const AString: String ): Boolean;
Parameters |
Description |
AString |
String value to be converted to its Boolean representation. |
Boolean - True or False.
IndyStrToBool is a Boolean function that converts the value in AString into it's representationas a Boolean value. IndyStrToBool uses case-insensitive comparison to look for the value in AString in the array elements of both IndyFalseBoolStrs and IndyTrueBoolStrs.
When AString does not exist in either IndyFalseBoolStrs or IndyTrueBoolStrs, the value in AString is converted to a numeric value where 0 represents the Boolean value False, and any non-zero value represents the Boolean value True.
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
|
Post feedback to the Indy Docs Newsgroup.
|