There may be other approaches, but without knowing what the data looks like, what the resulting index should look like, and how big the data is we'd just be guessing.

--
 Richard Gaskin
 Fourth World Systems



Rick Harrison wrote:
Hi Richard,

I was looking at the offset function and thinking about
the starting points.  It still presents a looping problem
for me that I’m trying to avoid.  If other methods aren’t
more efficient I will play with it more.

Thanks,

Rick

On May 16, 2022, at 2:32 PM, Richard Gaskin via use-livecode <use-livecode at 
lists.runrev.com> wrote:

The offset function has an optional third param for starting point, so setting 
that value to the number of bytes you want to skip would take you right where 
you want to be. Offset can then be used in a loop, updating the starting value 
as you go. Exiting the loop once your into the tail you don't want to index can 
be a simple if to escape the loop.

There may also be options for using delimiters. What does the source data look 
like, and what should the resulting index look like?

And the most central question with things like this: how large is "large"?



_______________________________________________
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

Reply via email to