Jbv. "Every ten lines"???
Is your handler using a loop to massage each of those lines? If so update the scrollbar every 10 passes through. So if you are using “repeat with…” you can do something like: repeat with y = 1 to whatever if y mod 10 = 0 then updateYourThingie And if you are using “repeat for” then you must add your own counter: repeat for each line tLine in yourText add 1 to counter if counter mod 10 = 0 then updateYourThingie Craig > On Dec 20, 2022, at 8:43 AM, jbv via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Le 2022-12-20 08:19, Brian Milby via use-livecode a écrit : >> Could you make changes to htmlText in a variable and then assign all >> at once back to the field? > > I thought of that, but it makes other parts of the script more complicated. > Finally I will chose a different strategy : instead of an animated gif, I'm > gonna use a progress bar that will be updated every 10 lines as follows : > unlock screen > set currentvalue of scrollbar "progress" to x > lock screen > It shouldn't slow down the script too much... > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode