Click to See Complete Forum and Search --> : Text search in .dbf file


sameer developer
May 23rd, 2001, 07:29 AM
Hi there, I am developing an application where I need to search the plain text in .dbf file can you help me for this ?

Thanks,
SS

Tower
May 23rd, 2001, 08:13 PM
Maybe you can use ADO Recordset. This is small example

set rec = new ADODB.Recordset
rec.Open ..connection string..
rec.MoveFirst
rec.Find "Field1 = ' " & MySeekString & " ' "




After this code Recordset rec focus on needed row.

sameer developer
May 24th, 2001, 07:12 AM
Thanks Tower,
It works,
The only thing is create a dsn file with foxpro driver as flat format and then we can consider it as an object like table, it works.

SS.