在使用delphi开发程序时候,我们经常会用到strtoint这个函数,该函数主要作用是将指定的整数字符串转换整数,如将'123'转换成123。

   但有时候,如果输入'12.3'或'abc',就会导致strtoint出错,为了避免这种情况,我们可以使用:strtointdef这个函数来代替strtoint

  

;

 

 

相关文章:

  • 2021-06-12
  • 2021-09-07
  • 2021-11-24
  • 2021-05-31
  • 2021-12-08
  • 2021-10-07
  • 2022-12-23
猜你喜欢
  • 2021-10-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
相关资源
相似解决方案