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 關注
- 369 瀏覽
添加回答
舉報