no built-in function. Not necessary. Please find a more general funtion
at the bottom.
It allows expressions like "char 1 to 4 of word 2 of item 5" ...
use it like
put getChunk("item 3",cd fld "data") into cd fld "result"
with the do "repeat...end repeat" it is very fast !!
function getChunk tChunk, tData
put "" into dres
do "repeat with yy = 1 to the number of lines of tData"&return&�
" put "&tChunk&" of line yy of tData&return after dres"&return&�
"end repeat"
if last char of dres = return then delete last char of dres
return dres
end getChunk
Jan