. Dim, - . :
Dim A As Integer
Dim B As String
.
Dim A As Integer, Name As Integer
:
Dim X, Y, Z As Integer
, . X Y Variant Z Integer. , . Dim, .
Variant, - Dim - AS. :
Dim FOO
.
. , Visual Basic , . , Visual Basic , . , .
. Visual Basic . Visual Basic , . , Option Explicit.
Option Explicit General.
General :
Code
General Object
Declaration Procedure
Option Explicit.
, . DefType. :
DefInt A-Z
DefType
DefInt DefLng DefSng DefDbl DefCur DefStr DefVar DefBool DefByte DefDate | Integer Long Integer Single Precision Double Precision Currency String Variant Boolean Byte Date |
, , Dim . DefType (General), Option Explicit.
|
|
- , . Visual Basic . , .
, Visual Basic , . , Option Explicit - Declaration
- : Code, Declaration General :
- Dim AZ As Currency