>>>> How do you delete a tag from a table if the CDX is missing?
>>
>>Marcus,
>>
>>If there is no cdx there is no tag to delete.
>
>Thanks for your help. Is there a way to unassociate a table with its CDX file? It looks to me that I should just handle error 1707 when the CDX has been deleted. Thanks again.
>Marcus.
Robin here -- I don't reccommend doing this, but the direct answer on disassociating a CDX is a two step process: remove ( i.e. set to 0 ) the low order bit in byte 28 of the DBF header ( assuming free table ) and erase the CDX file itself. Again, I don't recommend doing this, but that is how VFP keeps track of the presence / absence of integral CDX's. Error 1707 simply tells you that the integral CDX ( low order bit of byte 28 of the DBF header is a 1 ) but that the CDX file is missing. In the development environment, I just reply 'Ignore' to the VFP message 'Missing CDX', and voila, VFP turns off the low order bit of byte 28 of the DBF header and I don't see the message again.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only