I have a question about the mechanics of the VBA compiler.
A coworker of mine meant to type:
strX = RTrim(strY)
Instead he typed:
RTrim(strX + strY)
This was accepted by the compiler and actually ran fine.
The strings were evaluated as not equal and returned an RTrim of "False".
The "False" is not assigned to anythng and the compiler is happy to
just leave the result hanging in space.
Other "erroneous" entries really are flagged as invalid:
5 + 3 * intValue
intA + intB
Sin(intA)
These get flagged as invalid.
Can anyone shed some light as to what ruleset the compiler might be using?
Thanks,
Wayne
A coworker of mine meant to type:
strX = RTrim(strY)
Instead he typed:
RTrim(strX + strY)
This was accepted by the compiler and actually ran fine.
The strings were evaluated as not equal and returned an RTrim of "False".
The "False" is not assigned to anythng and the compiler is happy to
just leave the result hanging in space.
Other "erroneous" entries really are flagged as invalid:
5 + 3 * intValue
intA + intB
Sin(intA)
These get flagged as invalid.
Can anyone shed some light as to what ruleset the compiler might be using?
Thanks,
Wayne