On 2/19/11 4:44 PM, "Alex Tweedly" <a...@tweedly.net> wrote:
>> put 1 into tCurrentItemCharOffset >> repeat with i = 1 to the number of items in tData >> ... item 1 of (char tCurrentItemCharOffset to -1 of tData) ... >> add the number of chars in item 1 of (char tCurrentItemCharOffset >> to -1 of tData) + 1 to tCurrentItemCharOffset >> end repeat Hi, Alex. Since technique 3 involves counting the items and then for each item twice extracting a substring, perhaps a technique 4 is worth comparing: put 1 into tOffset repeat forever -- no counting the items put item 1 of (char tOffset to -1 of tData) into tItem -- single extraction per item if tItem is empty then exit repeat end if add (the number of chars in tItem) + 1 to tOffset -- do something useful with tItem end repeat Is it any faster on your data? -- Dick _______________________________________________ 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