General information
Category:
Coding, syntax & commands
Title:
Edit Memo Fields programatically
Hi All, I have a memo field in my report dbf. report dbf has list of all reports and then memo has different parameters for that report which i access at run time while running reports. this is just a desgin. its not done yet. but i want to do it this way since i like the idea of vfp system table uses just one memo field for different criteria than seperate field for everything.
so for example lets say memo has following values.
cPrg = 'RunReport1.prg'
cFrx = 'RunReport1.frx'
lEnterDates = .T.
lSummary = .F.
lCaption = 'Customer List'
i read help file and now i know how to read any one particular line of this memo field and then convert it to string thorugh Mline and Atline functions. but my problems is when i want to update any particular line or add a new line. I mean I want to make lSummary to .T. at run time. or add one new line in that memo field run time.
i couldnt find any function to update memo field. i dont know its correct but seems like i can convert whole memo to text file and then text to string , now update the string and then convert it back to text. and then finally convert text file to memo. do i have to do all this and is it reliable ? i mean does memo gets corrupted in middle sometimes?
I would appreciate lot all your help. Thanks in advance...
Mark
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only