If I type for example Sqr(a ^ 2 + b ^ 2)
there is no error. But when I type Sqr(a ^ 2 + b^ 2)
it produces a compile error which I do not understand:
What is the function of ^
in VBA7 as opposed to _^
(underscore to show space) which denotes exponentiation?
This is a 64 bit issue.
^ can confuse the compiler as to whether an operator versus operand value as LongLong is being used.
This problem occurs because the circumflex character (^) is ambiguous in this context. For 64-bit versions of VBA, the circumflex has two meanings: