Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving memory
Message
From
26/05/1998 11:07:05
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00101903
Message ID:
00101919
Views:
23
>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
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Reply
Map
View

Click here to load this message in the networking platform