I am trying to open and center a window when this timer starts running.
If event.source.running = 1:
system.nav.openWindow (‘EvacuationFlag’)
system.nav.centerWindow (‘EvacuationFlag’)
Error states:
parse error for event handler “propertyChange”
SyntaxErrorL (“mismatched input ‘event’ expenting NEWLINE”,(",1,3,'If event.source.running=1:‘n’))
I am not sure what this error is trying to tell me. Hopefully yall can tell what I am doing wrong.
Thanks
Ryan
You have a syntax error is all.
If event.source.running == 1:
Cheers,
Chris
I tried
If event.source.running == 1:
system.nav.openWindow (‘EvacuationFlag’)
system.nav.centerWindow (‘EvacuationFlag’)
same error
sorry didn’t copy well
If event.source.running == 1:
(tab) system.nav.openWindow (‘EvacuationFlag’)
(tab) system.nav.centerWindow (‘EvacuationFlag’)
Try using a lowercase i for the “if” statement. Also, when posting code, it’s a good idea to use the code tags, makes it more readable:
if event.source.running == 1:
system.nav.openWindow ('EvacuationFlag')
system.nav.centerWindow ('EvacuationFlag')
That was it. Thank you folks. I guess I have inadvertently always used lower case.