riktek
Member
- Local time
- Yesterday, 22:03
- Joined
- Dec 15, 2023
- Messages
- 102
Perhaps this is new, or just new to me, but I just learned that a string that concatenates a Null Variant variable between octothorpes using Null propagation (by use of the + operator) does not return Null but rather the string "Null" (without the quotation marks).
This can be handy but I just can't figure out why that would be. An hour with Google was fruitless.
Here's the function:
This can be handy but I just can't figure out why that would be. An hour with Google was fruitless.
Here's the function:
Code:
Function TestNullVariant() As Variant
Dim varReturn As Variant
Dim varTest As Variant
varTest = Null
varReturn = "#" + varTest + "#"
TestNullVariant = varReturn
End Function