Normally , when referring to a member of an enumeration , you must qualify the member name with the enumeration name 通常,当引用枚举成员时,必须使用枚举名称限定成员名称。例如,若要引用
When you call file accessrelated functions , you can use enumeration members in your code in place of the actual values 当调用与文件访问相关的函数时,可以在代码中使用枚举成员来代替实际值。
When you call file access - related functions , you can use enumeration members in your code in place of the actual values 当调用与文件访问相关的函数时,可以在代码中使用枚举成员来替代实际值。
When you call date - related functions , you can use the following enumeration members in your code in place of the actual values 在调用与日期相关的函数时,可在代码中使用下列枚举成员来代替实际值。
When you call number - formatting functions , you can use the following enumeration members in your code in place of the actual values 当调用数字格式设置函数时,可以在代码中使用下列枚举成员来替代实际值。
The expression can be any combination of literals , other constants that are already defined , and enumeration members that are already defined 表达式可以是文本、其他已定义的常数以及已定义的枚举成员的任意组合。
Enumeration members implicitly coerce to and from the underlying data type , allowing for direct assignments of numeric data to variables typed as 枚举成员隐式地强迫到/自基础数据类型,从而允许将数值数据直接赋给类型为
You must qualify every reference to an enumeration member , either with the name of an enumeration variable or with the enumeration name itself Filepermissions . read必须使用枚举变量名称或枚举名称本身限定对枚举成员的所有引用。
When visual basic encounters an enumeration member name , an exception may be thrown if other referenced type libraries contain the same name 当visual basic遇到枚举成员名称时,如果其他引用的类型库包含同样的名称,可能会引发异常。
However , you can still assign a value that is not an enumeration member , provided its data type can be converted to the enumeration s data type 但是,只要某个值的数据类型可以转换为枚举型,即使该值不是枚举成员,您也可以将该值赋给枚举变量。