jonathanmb
Technical User
I just ran across an interesting problem in an application I'm working on. Take this code for example...
In my mind this should NOT be allowed. However, VB6 nicely concatenates the numbers rather than complaining about an invalid operation.
Can anyone offer an explanation as to why concatenating numeric values is allowed?
--
Jonathan
Code:
Dim intTest As Integer
intTest = 2 & 3
Debug.Print intTest
In my mind this should NOT be allowed. However, VB6 nicely concatenates the numbers rather than complaining about an invalid operation.
Can anyone offer an explanation as to why concatenating numeric values is allowed?
--
Jonathan