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

DBMemo and read only

Status
Not open for further replies.

heydyrtt

Programmer
Dec 12, 2001
63
US
Is there a way to make the below strings read only. I will still need to enter notes in the memo field, just want to prevent the Lines added from being deleted. How can I have that read only and still use the memo field.

String ModifiedDate;
ModifiedDate = "Modify Date:"+Now();

String ModifiedBY;
ModifiedBY = "Modified By:" +DM->tblSrmfirstname->AsString.Trim()+" "+DM->tblSrmlastname->AsString.Trim();

DM->tblCalls->Edit();
DBMemo3->Visible = true;
DBMemo3->Lines->Add(ModifiedDate);
DBMemo3->Lines->Add(ModifiedBY);
DM->tblCalls->Post();

Thanks

Heydyrtt
 
TDBMemo has a ReadOnly property but you indicate you still need to update it but not delete a records. I've done this but only by locking the database itself. Look at your DB to see if you can prevent deletions.

James P. Cottingham
-----------------------------------------
[sup]To determine how long it will take to write and debug a program, take your best estimate, multiply that by two, add one, and convert to the next higher units.[/sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top