首页   |   IT资讯   |   综合资讯   |   开发   |   软件   |   问答   |   网络技术   |   网络综合
更多:
当前位置:首页 » 手机数码
文章正文

类型转换问题!在线等!!!

类型:转载   责任编辑:asp   日期:2007/03/01

    

strtoint()是把字符转换成整型,那把字符转换成布尔型怎么转换?

推荐阅读

  • 以质取胜!世纪之星旋风斗士300W电源 [详细内容]
  • UT109与UT108对比手册 [详细内容]
  • 单反便宜还有礼送 入门尼康D50卖6800 [详细内容]
  • 战绩不俗 销售排行前三甲强势出击 [详细内容]
  • 拍照彩蛋 G网新秀斯达康G3300上市 [详细内容]
  • 斩除毒瘤 谈办公市场之丑恶现象 [详细内容]
  • 12日硬盘:主流120G价格上扬 40~90元之间不等 [详细内容]
  • 网友回答:
    网友:ksaiy

    unit  
       
      sysutils  
       
      function   strtobool(const   s:   string):   boolean  
       
      多看看帮助~

    网友:ksaiy

    description  
       
      strtobool   converts   the   string   specified   by   s   to   a   boolean.   if   s   can   be   converted   to   a   number,   strtobool   returns   false   if   that   number   is   0,   true   otherwise.   if   s   can抰   be   converted   to   a   number,   strtobool   returns   true   if   s   is   any   of   the   strings   listed   in   trueboolstrs   (or   differs   from   one   only   by   case)   and   false   if   it   is   any   of   the   strings   listed   in   falseboolstrs   (or   differs   from   one   only   by   case).   if   s   is   not   a   number   and   not   one   of   the   strings   listed   in   trueboolstrs   or   falseboolstrs,   strtobool   raises   an   econverterror   exception.  
       
      note: if   you   do   not   assign   a   value   to   trueboolstrs,   it   is   treated   as   if   it   contains   the   single   string   慣rue?   similarly,   if   you   do   not   assign   a   value   to   falseboolstrs,   it   is   treated   as   if   it   contains   the   single   string   慒alse?

    网友:ksaiy

    description  
       
      strtobool   converts   the   string   specified   by   s   to   a   boolean.   if   s   can   be   converted   to   a   number,   strtobool   returns   false   if   that   number   is   0,   true   otherwise.   if   s   can抰   be   converted   to   a   number,   strtobool   returns   true   if   s   is   any   of   the   strings   listed   in   trueboolstrs   (or   differs   from   one   only   by   case)   and   false   if   it   is   any   of   the   strings   listed   in   falseboolstrs   (or   differs   from   one   only   by   case).   if   s   is   not   a   number   and   not   one   of   the   strings   listed   in   trueboolstrs   or   falseboolstrs,   strtobool   raises   an   econverterror   exception.  
       
      note: if   you   do   not   assign   a   value   to   trueboolstrs,   it   is   treated   as   if   it   contains   the   single   string   true   similarly,   if   you   do   not   assign   a   value   to   falseboolstrs,   it   is   treated   as   if   it   contains   the   single   string   false.

    .
      最佳浏览:1024X768 MSIE
    ©2007 jqmk.com.cn All Rights Reserved