Easy Value Compare Question

  • Thread starter Thread starter Y2K
  • Start date Start date
Y

Y2K

Any suggestions to compare two values, and if either value changes,
then both values now become the changed values. Right now I'm doing it
with a textbox and onchange event, but would like to get rid of the
textbox and use internal variables.

TIA
 
Scott,

Thanks for the reply, but that's not going to work, as it's only
comparing A to B and making A equal to B.

I need to compare both, and make each value the same as the last
changed value.
 
You need to keep a third value:
A=B=C

and then when you need to do your check ....
If A <> C then
C = A
B = A
elseif B <> C then
C = B
A = B
endif
 
Compare both what? If you compare A against B, what else is there to
compare?

And make each value the same as what's last changed value?

Could you be more clear on what you need? This seems like simple If...Then
logic.
 
And...
You could create a class, with two string properties and when you set
one, the other changes also.
 
Perfect! Thanks Terry. Knew there was an indirect var needed
somewhere. Works as expected.
 
Boo,

I had something the same with a problem my wife had yesterday. For most of
us (developing for a long time), logical thinking in this way is a second
nature, not all people are trained to think logical in this way and often
find it crazy as we do it and it takes than a long time to learn that.

That is probably why we sometimes don't understand people who don't do
computer development, because things are in our eyes often so logical..

Just my thought,

:-)

Cor
 
Hello Y2K,

You're welcome. Your lazyness and/or idiocy will probably kill you ealy
in life.

-Boo
 
Back
Top