3 回答

TA貢獻(xiàn)1799條經(jīng)驗(yàn) 獲得超6個(gè)贊
Option Explicit
Option Strict
Integer
Byte

TA貢獻(xiàn)1825條經(jīng)驗(yàn) 獲得超6個(gè)贊
Option Strict
Option Explicit
On
Tools -> Options -> Projects and Solutions -> VB defaults -> Option Strict
On
.
Tools -> Options -> Editor -> Require Variable Declaration
選項(xiàng)顯式
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
選項(xiàng)嚴(yán)格
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)注
- 377 瀏覽
添加回答
舉報(bào)