updating progress to user during long handler

Kay C Lan lan.kc.macmail at gmail.com
Sat Feb 27 05:14:58 EST 2016


On Sat, Feb 27, 2016 at 2:48 PM, jameshale <james at thehales.id.au> wrote:
>
> As an aside when reading the dictionary on lockscreen it states that its
> setting has no effect in the IDE with script debug enabled.
> I have script debug mode enabled.
> I am also doing all this testing in the IDE.
> If lockscreen has no effect in the IDE under these circumstances then why
> does setting the lockscreen to false allow things to work?
>
> Curious, no?
>
I think what that means to say is that you are not in Debug Mode until
you actually hit a breakpoint and you step through your code, stepping
onto lock screen will have no effect. It's pretty easy to test:

Run once then comment out the breakpoint and run again.

New stack, 1 button, 1 field. In the btn:

on mouseUp
   put empty into x
   repeat with x = 1 to 500
      put x into fld 1
   end repeat

   put empty into fld 1
   wait 1 sec
   --breakpoint
   lock screen
   repeat with x = 1 to 5000 --yes 5000*
      put x into fld 1
   end repeat
end mouseUp

* Just to demonstrate how unlocking the screen slows things down... A LOT.




More information about the Use-livecode mailing list