vb中 := 是什么意思呢?

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

比如,你问的这个句子

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,其它参数忽略。

原文地址:https://www.cnblogs.com/huhewei/p/6728749.html