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

accessing DBISAM memo fields as strings

Status
Not open for further replies.

StuM

MIS
Jan 16, 2001
148
0
0
US
I've gone brain dead. I need to access a memo field as a string, modify it (remove quote marks,commas), and repost it.
any help ?
 
if you have added your fields into the fields editor.

Edit1.Text := tblMyTableMemoField.AsString;

else

Edit1.Text := tblMyTable.FieldByName('MemoField').AsString;

Aaron
 
If I put it into a String Var and then do a pos(xx,',') I don't get the position of the commas that are in the string.
same if I look for ' .

 
you have it wrong way around.

var mystring: string;
begin
pos(',', mystring);
end;

Aaron
 
to replace all commas with a space in a string.

newstr := StringReplace(oldstr, ',', ' ', [rfReplaceAll]);

Aaron
 
The problem is getting the memo field from a DBISAM database into a String to manipulate it. I finnally put a "memo" on the form and set it equal to the table.memo field.asstring
then put out 1 string at-a-time from the memo ... did the string replacement. Put the string back into the memo on the form. Then finnally put the memo (tstring) back into the DBISAM memo field.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top