Hi Nick,
> Just tried the above and it partially works, it put what looks like a string of hex into wAttachmnt.
Sounds like the return value is binary. You can use
CAST(wAttachmnt AS MEMO)
to convert this to text. If the value is a hex string instead of binary that VFP displays as hex, then you can use
STRCONV(wAttachmnt,16)
--
Christof