Einzelnen Beitrag anzeigen

Furtbichler
(Gast)

n/a Beiträge
 
#5

AW: Change one value + many OnChange events = stack overflow

  Alt 30. Dez 2011, 21:33
Which programming language?
You should provide sufficient information, complete and easy to understand.
We like to help, but not if we have to solve puzzles in order to do so.

BTW, you have a circle in your dependencies, i.e.
1. if A changes, then also change B
2. if B changes, then also change A

If you change either A or B, you'll get an endless loop.
To avoid this: Only change if values differ:

1. if A changes and B<>A then change B.
2. if B changes and A<>B then change A.
  Mit Zitat antworten Zitat