Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing DBF File
Message
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00292880
Message ID:
00297958
Vues:
28
The *easiest* approach is to simply use the ADO OCX control and just drop it on a VB form. You can then set the properties for your ODBC drivers and it allows you to bind textbox's,etc to it easily like VFP (You can add the Microsoft ADO Data Control to your VB project from the Project... Components menu). Double click on 'Custom..' in the properties and a dialog displays all the connection options.

This control is easy to use and you can get up and going relatively easily.

That said:
I would recommend if you are going to use VB you get trained on using ADO programmatically in a class environment. I realize many shops are dropping VFP and switching to VB/ADO while still using VFP tables, but properly structuring a VB app with a ADO data aware class is the only way to keep the code from turning into a plate of angel hair pasta!

Good Luck,
Ed






>>For NTX, you'll have to use a 3rd party driver, I used codebase (www.codebase.com)to access clipper NTX tables and it works well. They make a ODBC driver that will update NTX indexes. With VB, you can use it with ADO to access the tables.
>
>This is actually a question that I have: I use Visual FoxPro, and would like to write programs that access VFP tables in VB. I have the ODBC drivers installed, but I don't have any information to get started with ADO. Can you give (or point to) some basic examples on how to open tables and use them? I get frustrated with VB because I know how to do completex table manipulation in Fox, but I can't even begin to do simple things with VB! Thanks.
>
>Basically if you can point to how to get started, I probably can figure the bulk out, but I can't even find info in the MSDN Library. (I'm sure it's there, but the help that it provides assumes that you already know how to use it.)
>
>Thanks again.
>Ben Keene
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform