JCL Help:StrToBoolean

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns a boolean representation of the string values 'True' and 'False'.


Pascal

 function StrToBoolean(const S: string): Boolean;


Parameters

Parameters Description
const S: string The string value for which you want the boolean representation.


Return Value

If S equals 'True' or 'T' or '1' the boolean True is returned. If S equals 'False' or 'F' or '0' the boolean False is returned.


Description

StrToBoolean returns a boolean representation of the string values 'True' or 'False'. Note that it is not case sensitive.


About

Unit

JclSysUtils


Donator

Jean-Fabien Connault


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page