Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Edit Memo Fields programatically
Message
From
14/07/2004 11:09:36
 
 
To
14/07/2004 10:50:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00924229
Message ID:
00924241
Views:
12
Hi Mark,

Provided you keep a strict control of the format of the memo field, you should be able to do it.

In the example you gave, assuming that the name of the memo field was repcode, the following should change the value of lSummary to .T. and add a new line.
REPLACE repcode WITH STUFF(repcode,AT('lSummary',repcode)+12,1,'T')
REPLACE repcode WITH repcode + 'cDbf = "Fred.dbf"'+CHR(13)
Easy isn't it? Changing the way you use spaces between records will however screw things up nicely. To cope with this, more coding is needed.

Alan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform