Last active
July 18, 2021 06:32
-
-
Save eggist77/4b0cbe5e408e75a94647f305deff0b6b to your computer and use it in GitHub Desktop.
VBA initValue.vb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub initValue() | |
Dim initBoolean As Boolean | |
Dim initByte As Byte | |
Dim initInteger As Integer | |
Dim initLong As Long | |
Dim initSingle As Single | |
Dim initDouble As Double | |
Dim initCurrency As Currency | |
Dim initDate As Date | |
Dim initString As String | |
Dim initVariant As Variant | |
Debug.Print "Boolean: " & initBoolean | |
Debug.Print "Byte: " & initByte | |
Debug.Print "Integer: " & initInteger | |
Debug.Print "Long: " & initLong | |
Debug.Print "Single: " & initSingle | |
Debug.Print "Double: " & initDouble | |
Debug.Print "Currency: " & initCurrency | |
Debug.Print "Date: " & initDate | |
'String | |
Debug.Print "String: " & initString | |
If vbNullString = initString Then | |
Debug.Print "String: vbNullString" | |
End If | |
'Variant | |
Debug.Print "Variant: " & initVariant | |
If IsEmpty(initVariant) = True Then | |
Debug.Print "Variant: Empty" | |
End If | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment