3 回答
TA贡献1825条经验 获得超6个赞
Option Strict
Option Explicit
On
Tools -> Options -> Projects and Solutions -> VB defaults -> Option Strict
On
.
Tools -> Options -> Editor -> Require Variable Declaration
选项显式
a = 123 'a is automatically declared as an Integer
Dim counter As Integer = 0'some lines later...countr = 55 'This creates a new variable called countr
选项严格
Dim d As Double = 999.99Dim s As Single = d 'No error with Option Strict Off
Single.MaxValue
EOpticalCalStates.FAILED
EOpticalCalStates.ALI_HOR
- 3 回答
- 0 关注
- 334 浏览
添加回答
举报