Recursion - Clearing Globals

eYeeYe Member Posts: 168
Hi

This is something very strange:
I have function A, that sets certain global variables (amongst which VAR Window of type Dialog) and then calls function B, that calls itself
recursively.

After an unknown amount of recursive loops (this appears to happen randomly), all my global variables seem to get cleared. I promise you, I don't clear it in function B.

After moving this code from the table to a codunit, it seems to be working :shock: ... Why is this?
Kind Regards,
Ewald Venter

Comments

Sign In or Register to comment.