Internet Direct (Indy)
Home
PreviousUpNext
IndyStrToBool Function

Converts a string value to its Boolean representation.

Pascal
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.