Setting hidden of lines very slow
hh
hh at hyperhh.de
Sat Dec 1 08:45:56 EST 2018
> Kaveh wrote:
> I am looking to hide any line that contains no textcolor anywhere.
I already gave you one that hides *exactly* these lines
(as you already wished in your first post).
> Hermann wrote:
> Here yet another fast method.
>
> on mouseUp
> put the millisecs into m1
> lock screen; lock messages
> put the htmltext of fld 1 into ht
> set linedelimiter to "<p"
> put the htmltext of fld 1 into ht
> replace " hidden" with empty in ht
> repeat for each line L in ht
> if offset("color=",L)>0 then put "<p" & L after s
> else put "<p hidden" & L after s
> end repeat
> set htmltext of fld 1 to s
> put the millisecs-m1 into fld "timing"
> end mouseUp
More information about the use-livecode
mailing list