>Hey Mark,
>
>I've trying that by I get garbage that looks like this:
>
>MX
>
>What I really need to do is to take the result of a diplay memo command and get it into the memo field.
OH, ok. Try this code. It writes the DISP MEMO results to a text file and then uses low-level file commands to read the contents.
LOCAL laFiles( 1), lnHandle, lcData, lcFile
lcFile = SYS(3) + '.txt'
DISP MEMO TO FILE ( lcFile) NOCONSOLE
ADIR( laFiles, lcFile)
lnHandle = FOPEN( lcFile)
IF lnHandle > 0
lcData = FREAD( lnHandle, laFiles(1, 2))
FCLOSE( lnHandle)
ERASE ( lcFile)
*-- Here you can copy lcData to your memo field or whatever
? lcData
ENDIF