I have a field called "PICC" that conatins text including the chunk "acTL".
I wish to copy ALL the text before the chunk "acTL" and dump it into another field.
Code: Select all
on mouseUp
find string "acTL" in fld "PICC"
set the traversalOn of fld "PICC" to true
select before foundChunk of fld "PICC" --this is a load of rubbish and does not work
copy the selected text
paste into fld "SOMEWHEREelse"
end mouseUp