The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



BoolToStr


Unit:SDL_stringl
Class:None
Declaration:function BoolToStr (ABool: boolean; Format: integer): string;

The function BoolToStr converts the boolean value ABool to a corresponding string value. The parameter Format determines the result:
Format         returned string
------------------------------
0               TRUE   FALSE
1               T      F
2               .T.    .F.
3               1      0
4               -1     0
5               FF     00
6               YES    NO
7               GOOD   BAD
------------------------------

Example: This function is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): geodata



Last Update: 2015-Jan-22