Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. How to Create Index on DBF Files using ado and vb6

How to Create Index on DBF Files using ado and vb6

Scheduled Pinned Locked Moved IT & Infrastructure
databasehelptutorialquestion
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chitzdacs
    wrote on last edited by
    #1

    Guys, I was assigned to convert an existing foxpro application into vb6. There's a module there in foxpro source code that will automatically create an index (cdx) on tables that has no index. The foxpro code goes something like this.. INDEX ON ALLTRIM(Prefix) + ALLTRIM(Rec_No) TAG PREREC OF TableName.CDX I've tried and researched all posible solution to convert this code into ado and vb6. Can anyone out there help me? Thanks! CHITZ :) -- modified at 5:26 Tuesday 17th January, 2006

    D 1 Reply Last reply
    0
    • C chitzdacs

      Guys, I was assigned to convert an existing foxpro application into vb6. There's a module there in foxpro source code that will automatically create an index (cdx) on tables that has no index. The foxpro code goes something like this.. INDEX ON ALLTRIM(Prefix) + ALLTRIM(Rec_No) TAG PREREC OF TableName.CDX I've tried and researched all posible solution to convert this code into ado and vb6. Can anyone out there help me? Thanks! CHITZ :) -- modified at 5:26 Tuesday 17th January, 2006

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      I'm curious why you don't create the index while designing the database, or are you leaving the data in the FoxPro database and just creating a VB front end?


      "The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb

      C 1 Reply Last reply
      0
      • D David Crow

        I'm curious why you don't create the index while designing the database, or are you leaving the data in the FoxPro database and just creating a VB front end?


        "The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb

        C Offline
        C Offline
        chitzdacs
        wrote on last edited by
        #3

        Yah! These dbf files comes from our clients, they're just sending them to us to process, and not all of these foxpro tables have index. The task that was given to me is to change our current program's front end (from Visual Foxpro to VB6 since all of our projects are now created using VB6) while leaving the database input as is. I badly needed to index these tables automatically for the the program to process queries faster since these database contains huge amount of records and once i've performed a single query, the process is so slow :(. Also i think it's not applicable to create database index manually if the number dbf tables are not just one or two. Chitz :) -- modified at 23:36 Tuesday 17th January, 2006

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups