Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果它包含特定字符串,我想从我的 TDBMemo 字段中删除行。
如何在 C++ Builder XE 版本中进行操作?
试试下面的。我是如何处理普通备忘录的
UnicodeString KeyPhrase = "the str your looking for"; for (int i = 0; i < DBMemo1->Lines->Count ; i++) { UnicodeString LineToCheck = DBMemo1->Lines->Strings[i]; if( LineToCheck.Pos( KeyPhrase ) ) { DBMemo1->Lines->Delete(i); } }