CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2001
    Location
    India
    Posts
    25

    Text search in .dbf file

    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


  2. #2
    Join Date
    May 2001
    Location
    Russia
    Posts
    200

    Re: Text search in .dbf file

    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.

    Andy Tower

  3. #3
    Join Date
    May 2001
    Location
    India
    Posts
    25

    Re: Text search in .dbf file

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured