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



TriStateToStr


Unit: SDL_stringl
Class: none
Declaration: function TriStateToStr (value: TTriState; Format: integer): string;

The function TriStateToStr converts the tri-state parameter value to its corresponding string representation. The generated string is controlled by the parameter Format which may assume values from 0 to 2.

The following table shows the returned strings depending on the Format parameter:

Format tsTrue tsFalse tsUndefined
0 'true' 'false' ''
1 '1' '-1' '0'
2 'yes' 'not' 'unknown'



Last Update: 2017-Apr-17