VB6 and the equals sign
Posted on 2007-10-16
This really has me puzzled. I'm debugging in a VB6 app. In the following line:
M7Tag = Seed1Children("MovieID")
the value for M7Tag is 115 while the value of Seed1Children("MovieID") is 391 !!!
How can that be? I thought one of the immutible laws of computing was 'What's on the left of an equal sign must be the same as what's on the right.'
M7Tag is a global variable. Seed1Chidren("MovieID") is a field in a Rescordset. I get no error message. I put a breakpoint 10 lines or so below this line - and got this result. Does anyone know how VB6 could parse this line and not complain (Type Mismatch, Variable not defined, etc.)? I don't know how to debug if I can't see what's happened here. If you can't believe in an = sign, what's left in Life? Signed,
Waiting for the sky to fall in Chicago