Need Advice: FoxPro Access from Visual Basic 
Author Message
 Need Advice: FoxPro Access from Visual Basic

Hi, this is the first time I've posted an article so here goes...

I am fairly new to Visual Basic and I am developing a prototype
that will access a FoxPro database.  I'm writing to see if you  
experienced Visual Basic folks know of any things I should watch
out for - pitfalls or problems - when accessing FoxPro from Visual
Basic.  I have reviewed the articles already posted and am aware
of the Installable ISAMS issues.  Is there anything else?  Any
issues regarding indexes?

Also, I have few examples of FoxPro table access and even of
multi-table access.  For multi-table access, I've only found the
"biblio" sample that came with Visual Basic.  The few
reference books I have tell me how to access one table with
Data Control.  I would appreciate suggestions of some good
references for data access with examples.      

My FoxPro database is fully normalized, with numerous tables
linked by primary and foreign keys.  (The database was created
with a database generator product.)  I'll want to be able to
read and write to the database from the VB prototype.  I'll want
to show multiple tables on one form.  The prototype will ask the
user to select a primary key and then related information from the
database will populate a number of forms.

Any advice would be greatly appreciated.  Thanks.



Fri, 24 Oct 1997 03:00:00 GMT  
 Need Advice: FoxPro Access from Visual Basic

Quote:
>I am fairly new to Visual Basic and I am developing a prototype
>that will access a FoxPro database.  I'm writing to see if you  
>experienced Visual Basic folks know of any things I should watch
>out for - pitfalls or problems - when accessing FoxPro from Visual
>Basic.  I have reviewed the articles already posted and am aware
>of the Installable ISAMS issues.  Is there anything else?  Any
>issues regarding indexes?

If you have any indexes that consist of multiple fields or involve Xbase
functions, they will not be used or updated by VB/Jet.  If your tables are
large, then you'll get pretty slow results on queries.  So, I switched
to SuccessWare's Rocket.

Quote:
>Also, I have few examples of FoxPro table access and even of
>multi-table access.  For multi-table access, I've only found the
>"biblio" sample that came with Visual Basic.  The few
>reference books I have tell me how to access one table with
>Data Control.  I would appreciate suggestions of some good
>references for data access with examples.      

Good choice.  Based on experience, I've come to rely on Data Access.  Bound
data controls are nice.  You can't beat the functionality you get in such a
small amount of effort.  However, you get little flexibility on when and how
things are saved.  I found myself fighting the bound controls more than
utilizing them.  For this, I've switched to using Data Access.  With the Rocket,
you'll want to use Data Access-like techniques anyway.

Quote:
>My FoxPro database is fully normalized, with numerous tables
>linked by primary and foreign keys.  (The database was created
>with a database generator product.)  I'll want to be able to
>read and write to the database from the VB prototype.  I'll want
>to show multiple tables on one form.  The prototype will ask the
>user to select a primary key and then related information from the
>database will populate a number of forms.

>Any advice would be greatly appreciated.  Thanks.

If you're going to do much work with VB and FoxPro DBF files, give
SuccessWare a call at (909) 699-9657 and ask for information on the
Rocket.  I think you'll find it worth the $150.  Especially if you
plan on creating multi-user add/edit/delete-type applications.

If you're not constrained to the DBF format, consider moving the data
to an Access/MDB format.

--
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
: Shannon Thornton                       : U.S. Army Corps of Engineers :

: #include <std.disclaimer>              :           Computer Scientist :
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+



Fri, 24 Oct 1997 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Advice needed: FoxPro or Access

2. access table updated by Visual Basic passed on to visual Foxpro

3. I Need Visual Basic 5 Advice

4. Running Application in Visual basic Form : Need Advice

5. NEED FOXPRO/VISUAL FOXPRO PROGRAMMER!!!!

6. Visual Basic App using Foxpro DB vs Access DB vs SQL Server DB

7. PROBLEM: Accessing Foxpro table from Visual Basic

8. Visual Basic App using Foxpro DB vs Access DB vs SQL Server DB

9. N-tier ADO->OBDC->Visual FoxPro Database advice

10. Visual FoxPro indexing in Visual Basic

11. using Visual FoxPro Databases in Visual Basic 6.0

12. Visual Foxpro or Visual Basic

 

 
Powered by phpBB® Forum Software