On 9/15/13 11:03 AM, Dr. Hawkins wrote:

If I have strng containing

     A B C<tab>1 2 3

then
set the itemDel to tab
repeat for each item itm in strng
put itm
set the itemDel to space
put item 1 of itm
next repeat

Will put out
A B C
A

For the first iteration, but

1
1

for the second--it takes up parsing from the same point, but with the new
itemdDel


If your second delimiter really is a space, then the simple solution is to use "word" instead of "item" inside the loop. Otherwise you can just do a replace like this:

set the itemDel to tab
repeat for each item itm in strng
  replace vtab with tab in itm
  put item 1 of itm
end repeat

I think in this case it isn't necessary to store itm in a temp variable since nothing else is done with it, but check.

--
Jacqueline Landman Gay         |     [email protected]
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
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

Reply via email to