Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 13328, Replcaing a String in a Database

by Frank Hirka Email: Anonymous


Download Details
FTP  download also available 0 bytes
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 1.0  to 4.0 20 downloads
Copyright: No significant restrictions


Size: 0 bytes
Updated on Mon, 17 May 1999 00:00:00 GMT
Originally uploaded on Mon, 17 May 1999 00:00:00 GMT
Description
This Procedure makes it easier to change string data in a TTable.
Replaces data string in the current record.
fTableName : TableName
fFieldName : Fieldname
fReplacingData : NEW String data
The dataset must be in EDIT mode and must be POSTED later to take effect

Procedure DBReplaceStr(fTableName: Tdataset; fFieldName, fReplacingData: string);
begin
TTable(fTableName).Fieldbyname(fFieldName).asstring := fReplacingData;
end;

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Server Response from: ETNACDC03