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

Memo table

Status
Not open for further replies.

tjc240e

Technical User
Nov 12, 2004
133
US
I have a form that has two memo fields on them and what i'm trying to do is use the .ReplaceMemo function to put the memo into the field OPCONSTATEMENT, but it keeps telling me that TStrings and PAnsiChar are incompatible types?

How to I convert the TStrings so that i can put them into the database?

TIA
 

TStrings has a .Text property that you should be able to use.

There are other properties you should look at such as .CommaText and .DelimitedText

Look in the help file.

 
trying the .Text...

OTmpTable.ReplaceMemo('OPCONSTATEMENT', meOpConStateMsg.Text);

produces Invalid types: tCaption and PAnsiChar...

Should I change the ReplaceMemo with ReplaceString if i am going to use the .text property?
 
Ok never mind i was having a monday morning brain freeze.

I did change it to replacestring and now it is working... Thanks very much for all the help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top