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


Unit: SDL_stringl
Class: none
Declaration: function StrToTriState (value: string): TTriState;

The function StrToTriState converts the string specified by the parameter value to the corresponding tri-state value.

The following table shows the recognized string values and the corresponding tri-state values. The conversion is not case sensitive.

input string returned value
'true', '1', '+1', 'yes' tsTrue
'false', '-1', 'no' tsFalse
any other string
(incl. empty string)

Last Update: 2017-Apr-17