Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to delink the database from a bound l\table
Message
De
10/08/1998 09:38:02
 
 
À
02/08/1998 11:21:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00123268
Message ID:
00125222
Vues:
20
>>Satya ---
>>
>>
>>I am assuming that there are no 10+ character field names or triggers or other DBC specific stuff for the tables? If this is so, you can open the .DBC as a metadata table and delete the records. Delete where objecttype = Table and Objectname = "tablename" ... also delete all where parentid = parentid for the table record. This should work.
>>
>>
>
>This will work for the dbc side of things, but a dbf that belongs to a database also has a link to the database with a relative path. That's why you don't have to OPEN DATABASE to use rules and other extended information when you USE the table.
>
>Satya- I wouldn't know where to begin modifing a file on the low level to delete its back link...
>Why don't you try creating a VFP COM server that you can call from VB to do the deleting for you using FREE TABLE?

The back link info. is stored at n+2 to n+264 a total of 263 bytes.

here n+1 will have the header terminator. 0x0d
Note also that header terminator may occur also after the field record info.
So search for the ---n ----- in such a way that remainder (n-1)/16 will be 0

It is because all field records are of 32 bytes.
So with above logic, I delinked the DBC back link info in binary level,
and it perfectly worked.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform