>>>>>>>
REPLACE mMemo WITH FILETOSTR(cDocFile)
>>>>>>
>>
>>my code
>>
>>REPLACE wordin WITH FILETOSTR("c:\my documents\colinnewnotes.doc")
>>
>>Wordin is a memo field
>>
>>What I get is a lot of rubbish in wordin
>>
>>What am I doing wrong?
>
>Storing Word docs in memo fields is a very bad idea, but if you want to anyway, there are some ways:
>
>1) You can create a General field and use APPEND GENERAL (see help file)
>
>2) You can create a binary memo (with NOCPTRAN) and use the same replace you intended to use
>
>3) Save in a normal memo field but converting to base64 with STRCONV()
>
>Regards.-
Rule #1: Avoid general fields, at all cost
Rule #2: If you absolutely must use a general field, see rule #1.