3 回答
TA贡献1825条经验 获得超6个赞
Option StrictOption ExplicitOn
Tools -> Options -> Projects and Solutions -> VB defaults -> Option StrictOn.
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.FAILEDEOpticalCalStates.ALI_HOR
- 3 回答
- 0 关注
- 433 浏览
添加回答
举报
