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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting memo field to text field?

Status
Not open for further replies.

pjwraith

Technical User
May 17, 2002
12
GB
I find myself in need of converting a memo field to a text field!! I am a lite user of foxpro and not a programmer so please bear with me.

To make it simple I am in a position where I have the following fields to a foxpro 6 table called NOTES.

Coderef (index field)
Memo1 (memo field)
Text1 (Text field I would like the comment in!)
Memo2 (memo field)
Text2 (you get the idea)
Memo3 etc

I know from scouring the threads last week that it is apparently easy to copy the memo data to the text field but I was not quite able to achieve the result I wanted.I wish to copy all the satat in the table ie all 2000 records.

Can someone give me some clear code lines to achieve my ends?

Thanks in advance for your help.
 
Try making new text columns for each memo field and then use the "replace all" command. e.g. "repl all newtextcol with memotxt".

Brian
 
Thankyou, this has done exactly as I needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top