>>squeezing it more
>
>STRTOFILE(STREXTRACT(CAST(custfile AS W),"%PDF","%%EOF",1,4), lcPdfFileName)
>
>
>One line of code, with no cleanup required...now that's impressive
>
>I added the 4 for STREXTRACT's nFlag parameter, to include delimiters.
Of course.