Apologies hh. I can confirm that the htmltext method works beautifully and blindingly fast. I was going to try it to understand fully first. I now do and am grateful for the amazing tricks I have learned here. :-)
On Sat, 1 Dec 2018 at 13:46, hh via use-livecode < use-livecode@lists.runrev.com> wrote: > > > 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 > > > _______________________________________________ > 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 > -- Kaveh Bazargan Director River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter <https://twitter.com/kaveh1000> • LinkedIn <https://www.linkedin.com/in/bazargankaveh/> _______________________________________________ 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