JCL Help:BoolToInt

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns an integer representation of a boolean value.


Pascal

 function BoolToInt(B: Boolean): Integer;


Parameters

Parameters Description
B: Boolean The boolean value for which you want the integer representation.


Return Value

If B is True the result is 1. if B is False the result is 0.


Description

BoolToInt returns an integer representation of the boolean values True or False. Thus, if B equals True the string 'True' is returned, if B equals False the string 'False' is returned.


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