Handler not finishing after go to card

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Proct0r
Posts: 4
Joined: Tue May 21, 2013 11:38 am

Handler not finishing after go to card

Post by Proct0r » Fri May 24, 2013 12:21 pm

Hi all, another day another query :)

I have a handler with a breakpoint immediately following a 'go to card 1' command that never triggers (and nor does the code following it). My issue is that the code following the breakpoint is supposed to refresh a data grid on card 1 and, to avoid needless suffering (lessons/m/datagrid/l/7340-what-sorts-of-things-should-i-not-do-in-order-to-avoid-needless-suffering), you should apparently never try to draw a data grid that isn't visible on screen.

Any suggestions?

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Handler not finishing after go to card

Post by Dixie » Fri May 24, 2013 1:02 pm

Hi...

Then why not update your datagrid before you leave the card... maybe something like..

on mouseUp
lock screen
-- do your refresh stuff
go card 1
unlock screen
end mouseUp

mmm... the code button does nor seem to be working in the forum...

Dixie

Proct0r
Posts: 4
Joined: Tue May 21, 2013 11:38 am

Re: Handler not finishing after go to card

Post by Proct0r » Fri May 24, 2013 1:43 pm

Wouldn't that still be refreshing the data grid before displaying it?

Oddly enough the problem seems to have fixed itself anyway... Perhaps I just needed that restart hehe
Thanks for replying though.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Handler not finishing after go to card

Post by Dixie » Fri May 24, 2013 3:23 pm

No, it would refresh and then go to card 1... you wouldn't see the refresh happen as the screen would be locked

Post Reply