vb中如何定義變量?
dim a,b as Integera 為variant b 為 integerdim a as Integer ,b as Integer定義a,b為整形變量Dim a As Integer -說明a為整型變量 Dim b As String -說明b為可變長字符型變量 Dim c As String~~1 0 ’說明c為長度是10個字符的固定長字符型變量 Dim d(10)As Integer -說明d為一維整型數組 Dim e()As Single -說明e為動態單精度變量 Static f As Integer ,說明f為靜態整型變量 ReDim e(10)As Single -說明e為一維單精度數組 Global h As Integer -說明h為全局整型變量