In this case the only thing I am trying to hide is all the subtext between the main lines starting with the line clicked on. It's always going to be a contiguous chunk, and nothing will change the contents of the field except my scripts so that is good.
Not sure about the metadata property, but I want to make sure that if the user clicks anywhere else except for the +/- icon, nothing happens. That is why I check for the clickChar. Bob S > On Jun 26, 2017, at 10:52 , hh via use-livecode > <[email protected]> wrote: > > Bob S. wrote: > "if the hidden of line tStartLine to tEndLine of me is <false/true> > then set the hidden of line tStartLine to tEndLine of me to <true|false>" > > Yes, but depends on the scenario: Sometimes I find it more safe to walk > through the range (for j=tStartLine to tEndLine) and check the hidden > of each single line, because the hidden of a range may have been changed > by changing the range elsewhere. > > Also: Did you already try to use the metadata property for a chunk instead > of relying on spaces? _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
