In addition, an interface can contain constant declarations.
另外,接口可以包含常量声明。
You can use arithmetic operators within your constant declarations as long as there are no mixed type expressions.
只要没有混合的类型表达式,就可以在常数说明中使用算术运算符。
Also as the name says, implicitly typed local variable, you cannot use var for field declaration or constant variables, therefore following declarations will both produce a compiler error.
故名思意,“隐式类型局部变量”将无法用于域变量或常量的声明中,否则将导致编译错误。
To create a constant available to all procedures within a class, but not to any code outside that module, declare it in the declarations section of the class.
若要建立可被类别中所有程序使用,但不可以被该模组外的程序码使用的常数,请在类别的宣告区段中宣告这个常数。
To create a constant available to all procedures within a class, but not to any code outside that module, declare it in the declarations section of the class.
若要建立可被类别中所有程序使用,但不可以被该模组外的程序码使用的常数,请在类别的宣告区段中宣告这个常数。
应用推荐