Same Topic....different issue, (Carl's is resolved !)
I have been trying to make a dynamic GOTO by using a variable as the destination. None of these three works:
=================================
1.
GOTO @CurrentElement()
2.
var vgCurrentElement as String
vgCurrentElement = @CurrentElement()
GOTO vgCurrentElement
3.
var vgCurrentElement as String
vgCurrentElement = "NextElement" //Any element but current
GOTO vgCurrentElement
I can understand that perhaps the first two do not work because the known issue that cannot do GOTO to self. But the third option tries to go to any other element but does not work. Am curious about the logic that prevents this process from being used.
===========================
Another related question re timing of GOTO execution:
I have been experimenting with CurrentElement() and it appears that if I use CurrentElement() in ElementExit Event, that the CurrentElement() value may come back as the next Element as directed by the program vs. the "real" current element where these program lines are originating from.
Hmmmm.....never mind, I will make this a separate Topic: Timing of Events.
http://www.lantica.com/Forum2/cgi-bin/yabb/YaBB.pl?board=gen_disc;action=display...