1.Instr()函数

 

 

 

1. Instr用法举例如下:

    

        Debug.Print InStr(1, "SFSA_UBS_ddd", "uBS", vbBinaryCompare)    ' 返回 0 ,找不到 uBS; 因为 vbBinaryCompare 区分大小写
        Debug.Print InStr(1, "SFSA_UBS_ddd", "uBS", vbTextCompare)      ' 返回6 ; vbTextCompare 不 区分大小写
        Debug.Print InStr(6, "SFSA_UBS_ddd", "uBS", vbTextCompare)      '返回6 ; 第一个参数6代表从第6个参数开始search,包括第6个字符.

 

相关文章:

  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
猜你喜欢
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
相关资源
相似解决方案