如何判断一个变量是否等于很多值中的一个? Delphi / Windows SDK/API
http://www.delphi2007.net/DelphiBase/html/delphi_20061211105425201.html
变量temp,  
  如何判断temp是否等于   {1,2,3,4,7,8,11,12,45,58,56,94,54,5,48,321,123,456,789,951,423,956,957}  
  中的一个?  
  要最简单的方法

if   temp   in   [1,2,3,4,7,8,11,12,45,58,56,94,54,5,48,321,123,456,789,951,423,956,957]   then   存在   else   不存在

if   temp   in     [1,2..20,50,60]   then   ;

jf

相关文章:

  • 2022-12-23
  • 2021-06-07
  • 2022-01-21
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案