CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com eBook Library


Newest Articles at CodeGuru.com:

  • A Beginner's Guide to PLINQ
  • Understanding the New Cryptographic APIs in Window Phone Mango
  • Simplest Window Service
  • Working with .NET Framework 4.0 Tuples

  • Search CodeGuru:
     




    Go Back   CodeGuru Forums > Visual Basic Programming > Visual Basic 6.0 Programming
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Visual Basic 6.0 Programming Ask questions about VB 6.0 (or earlier versions) or help others by answering their question.

    Reply
     
    Thread Tools Rate Thread Display Modes
      #1    
    Old September 20th, 1999, 09:39 PM
    wangwien wangwien is offline
    Junior Member
     
    Join Date: Sep 1999
    Location: China
    Posts: 3
    wangwien is an unknown quantity at this point (<10)
    How can I open Dbase IV file in VB?

    I want to use a DBase IV file in VB, PLS teach me how to write it?

    Reply With Quote
      #2    
    Old September 21st, 1999, 04:52 AM
    santulan santulan is offline
    Member
     
    Join Date: Aug 1999
    Location: India-Delhi
    Posts: 106
    santulan is an unknown quantity at this point (<10)
    Re: How can I open Dbase IV file in VB?

    hi...
    Use DAO ( Data Access Object ). Data Control OCX. Rememeber following -
    1. In Connect Property select Dbase IV. (This is a combo type selection)
    2. In database name, select only that sub-directory where dbase files resides.
    3. In recordsource property please use the actual dbf file.
    4. After that you can access its fields by simply binding then to any text box, etc controls.



    Santulan
    Reply With Quote
      #3    
    Old September 22nd, 1999, 04:38 AM
    wangwien wangwien is offline
    Junior Member
     
    Join Date: Sep 1999
    Location: China
    Posts: 3
    wangwien is an unknown quantity at this point (<10)
    I want to use it not only for control,but also as a recordset.

    I want to use the Dbase IV file as Access a recordset, I can add, edit, Delete.Search and so on,Can I do it?

    Reply With Quote
      #4    
    Old September 22nd, 1999, 04:53 AM
    santulan santulan is offline
    Member
     
    Join Date: Aug 1999
    Location: India-Delhi
    Posts: 106
    santulan is an unknown quantity at this point (<10)
    Re: I want to use it not only for control,but also as a recordset.

    Yes! you can do it. Once it is recordset, you can apply any valid operation. Just do it. recordset.add
    recordset.edit
    all commands will work fine. Just give a try. :-)
    Same time, find possibilities to convert the stuff into minimum Access... if possible.


    Santulan
    Reply With Quote
      #5    
    Old September 22nd, 1999, 10:07 AM
    Amendra Amendra is offline
    Member
     
    Join Date: Aug 1999
    Location: Srilanka
    Posts: 25
    Amendra is an unknown quantity at this point (<10)
    connect at run time

    Do you know the exact method of connecting to a dbase file's at runtime. I tried using the format given in the help, but this doesn't work.

    Amendra

    Reply With Quote
      #6    
    Old September 22nd, 1999, 08:54 PM
    wangwien wangwien is offline
    Junior Member
     
    Join Date: Sep 1999
    Location: China
    Posts: 3
    wangwien is an unknown quantity at this point (<10)
    I am sorry, would you please tell me that in detail?

    I use this code to open a Access file:
    Set Data_Merge = OpenDatabase("c:\merge\merge.mdb")
    Set RS_Merge = Data_Merge.OpenRecordset("select * from merge")

    It work very well. When I want to use a another Dbase IV file, I use code like follow:
    Set Data_Merge = OpenDatabase("c:\merge\dbase4.dbf")
    But at runtime return a wrong "Unrecongnized database format". PLS teach me how I change the code and let the programme run?

    Reply With Quote
      #7    
    Old July 10th, 2001, 08:42 AM
    Un1 Un1 is offline
    Member
     
    Join Date: Jul 2000
    Posts: 110
    Un1 is an unknown quantity at this point (<10)
    Re: How can I open Dbase IV file in VB?

    Try this high performance DBF engine: (VB source code include)
    http://www.banasoft.com/DownLoad/BNxBase.exe

    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual Basic Programming > Visual Basic 6.0 Programming


    Thread Tools
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 10:32 AM.



    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.