Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Freeing a Table From a DBC
Message
De
20/06/2002 12:14:59
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00670670
Message ID:
00670695
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
Bret,

Does it error out if there is a link with no DBC? Or does it prompt the user if they want to free the table?

If it is an error, you could trap for that specific error number and then FREE the table.

Or, you could open the table first with FOPEN(). The header terminator is the 0x0D character, and if the first byte after that point is 0x00 there is no backlink. If there is a backlink, you can FREE it after you do your FCLOSE(). See Table File Structure in VFP help.

< UPDATE>
I have a feeling you knew you could go this route, but that you are looking for something better *grin*

>I have a Web applications that requests a data table to be uploaded. My problem is that some users choose a table that is part of a DBC. Since I don't have the DBC, the program will error when trying to use the table. Is there a programmatic way to check for a table's link to a DBC and then remove the link to the DBC before I open the table up?
>
>TIA
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform