就是想把Boolean --->String;
如True--->'True'

解决方案 »

  1.   

    var  str:string;
         boo:boolean;if boo=true then
       str:='True'
    else
       str:='False';
      

  2.   

    BoolToStr(b, true);
    b 是要转换的Boolean 值,
    这样会返回'TRUE' 或者'FALSE'。要改变显示的字符串,需要修改TrueBoolStrs 和FalseBoolStrs 数组。
      

  3.   

    BoolToStr自己实现If boo Then str:='True' Else str:='False';
      

  4.   

    var  str:string;
         boo:boolean;if boo=true then
       str:='True'
    else
       str:='False';
      

  5.   

    Delphi syntax:
    function BoolToStr(B: Boolean; UseBoolStrs: Boolean = False): string;
    DescriptionBoolToStr converts the given Boolean value to a string as follows:Value of B Value of UseBoolStrs Value of returned stringtrue false ‘-1’
    true true The first string in TrueBoolStrs (default ‘TRUE’);
    false false ‘0’
    false true The first string in FalseBoolStrs (default ‘FALSE’);