Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding data on memo field?

Status
Not open for further replies.

icemiller

Programmer
May 22, 2001
4
PH
How are we going to add data inside the memo field if it is not empty? We have no problem if it is empty. We just use the REPLACE command to place our data inside it.
 
Just add to the contents like this:

REPLACE DB->MEMO WITH DB->MEMO + cString

or

DB->MEMO += cString
 
I use a function MEMOEDIT(). I also use some GRUMPFISH
utilities to insert automatic dates, times, etc if relevant.
I also use my own boxdrawer() functions with pretty colours
and highlighted hotkeys to guide users in possible
navigation and edit options.


Example...
editok := .T. && True for edit, false for readonly
mydata=MEMOEDIT(fieldname,top,left,bottom,right,editok,"")
IF updated()
REPLACE fieldname WITH mydata
ENDIF

Jim
 
Thanks!guys. I have already tried that but I still have a problem. I am merging multiple dbf files into one .dbf file with only one record, that means all the entries on the memo fields of all the files will be put into one. if you process the file you will notice that not all the data were collected. But having a quick view on the .dbt file, you can see that they are all there. I will appreciate so much if you guys can help me on this. Do you have an idea on how we can convert a .txt file into .dbt file?
 
you can open your source file and replace the memo field in a destination file using memoedit. read the source file record by record. keep concatenating the string and write to the destination memo field.

SUbra if you find this useful let me know at vksubra@usa.net
 
Use memoedit and also search for unnecessary space within the text in the memo b/4 merging them together.

Mark Frolic
Lagos, Nigeria
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top