Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving memory
Message
De
26/05/1998 11:07:05
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00101903
Message ID:
00101919
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform