Numbering lines
J. Landman Gay
jacque at hyperactivesw.com
Sun Oct 28 15:24:05 EDT 2018
You're right, split deletes duplicates. In fact, I use it as a quick way
to do just that.
I don't see any way to add line numbers without looking at each line.
But you could keep a counter in a variable and put the text into an
array with the counter integer as the key. That might be faster than
keeping a text list. I haven't followed this thread closely, so probably
that's already been suggested.
I think if you remove the speed hit that updates the field scroll, it
might get fast enough.
On 10/28/18 1:14 PM, David V Glasgow via use-livecode wrote:
> I had believed that collapsing duplicates and alphabetising are unavoidable with split. If there is an array method which doesn’t mess with the text message order or content, then I would be delighted. Is that what this is below, but I haven’t appreciated it?
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list