>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement