How to search text directly from database field
Posted: Sat Nov 03, 2007 7:47 am
I would like to search all records including a given text from database, which has a field containing RichViewEdit data.
A simple method is that using database scrolling function as follows:
aTbale.first;
while not aTbale.EOF do begin
if DBRichViewEdit.searchtext() then begin
...
end;
aTable.Next;
end;
But the database table is a master table, i.e., it has many detail database tables.
I think this method is not efficient.
So I want to use a cloned database table which is only for searching, and the table is not linked a DBRichViewEdit.
if there is a external text searching function like
function RVSearchText( RVDBData, aText, SearchOption) :boolean;
,this is more efficeint maybe.
Is there another method for searching a text directly from database field value?
Thanks in advance.
Seungho Jung
A simple method is that using database scrolling function as follows:
aTbale.first;
while not aTbale.EOF do begin
if DBRichViewEdit.searchtext() then begin
...
end;
aTable.Next;
end;
But the database table is a master table, i.e., it has many detail database tables.
I think this method is not efficient.
So I want to use a cloned database table which is only for searching, and the table is not linked a DBRichViewEdit.
if there is a external text searching function like
function RVSearchText( RVDBData, aText, SearchOption) :boolean;
,this is more efficeint maybe.
Is there another method for searching a text directly from database field value?
Thanks in advance.
Seungho Jung