":="用于函数或过程调用,用来指定命名参数。

比如,你问的这个句子

Visual Basic code
   

Err.Raise Number:=71  


err是对象名,raise是它的方法,也就是,raise是一个过程。这个raise方法它有多个可选参数。它的语法是:

object.Raise number, source, description, helpfile, helpcontext

其中,除了number这个参数,其它参数都是可选的。

err.raise number:=71

表示用raise这个方法,把那个命名为number的参数的值设为71,其它参数忽略。

相关文章:

  • 2022-02-14
  • 2023-03-12
  • 2022-12-23
  • 2022-12-23
  • 2021-05-07
  • 2021-06-10
  • 2021-10-21
  • 2022-01-14
猜你喜欢
  • 2022-12-23
  • 2021-06-30
  • 2021-02-12
  • 2021-12-23
  • 2022-12-23
  • 2021-12-07
  • 2021-09-03
相关资源
相似解决方案