3 回答

TA貢獻1799條經(jīng)驗 獲得超6個贊
Option Explicit
Option Strict
Integer
Byte

TA貢獻1825條經(jīng)驗 獲得超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 關(guān)注
- 366 瀏覽
添加回答
舉報