Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
3 questions about using ODBC Direct with Visual FoxPro 5
Message
 
 
À
11/09/1997 18:33:56
Information générale
Forum:
Visual C++
Catégorie:
Autre
Divers
Thread ID:
00046779
Message ID:
00049991
Vues:
45
>>>I am trying to access Visual FoxPro 5.0 tables from a VB 5.0 application and I have three questions:
>>>
>>>1. Can I reindex the database from VB?
>>>2. Can I pack and remove records marked for deletion from VB?
>>>3. I have written a stored procedure to generate an incremental index for new records in my tables. This procedure
>>>works well in VFP, but when I add records from VB it doesn't work at all. Why is this? I thought stored procedures were supported for external access as long as they didn't contain unsupported XBase commands, as specified in the VFP ODBC driver help file?
>>>
>>>Thanks,
>>>
>>>Brian Hartin
>>>MCI Telecommunications
>>>Brian.Hartin@MCI.Com
>>
>>Brian,
>>Looks like there needs to be better peer support in this forum! Anyway, here is my, somewhat small, experience working with Foxpro tables with VB. I've tried to access Foxpro tables using VB4 before without success. I couldn't do those things you are inquiring (reindex, pack, etc) and in addition, could'nt find a way to not show deleted records. VB, it seems, gives you access to add, edit, view but nothing more. I haven't worked with VB5 or VFP ODBC drivers yet but I don't believe too much have changed.
>>
>>My suggestion is to use Visual Foxpro 5.0 for front end or use third-party database manager (like CodeBase from Sequiter Software Inc.) to access the tables.
>>
>>John
>Have you considered a VFP automation server to wrapper the database functions? Expose the needed methods and use them from VB as you would anyother server. This allows the full capabilities of VFP to be exploited and possible offload some of the field/record/multiuser functions.
>HTH

Gary
I haven't tried this but this would be a great solution since this is the wave of the future. As soon as I get some time freed up I will experiment with this setup. It should be fun! Anyway, have you Gary tried this and if so, can you elaborate on your experience?

TIA
John
It's "my" world. You're just living in it.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform