>Hi All,
>
>I am looking for a simple way to identify VFP tables. My app can come across several different types such as dBase2 and I want only to be able to open the VFP ones. When I look at the table stru in help I see that first byte is x'30' for VFP. What is the best way to check this from inside of VFP? Any assistance would be most appreciated.
>
>Regards Rex
Rex,
Besides lowlevel functions you could check the header() vs fcount(). VFP tables have an extra 263 bytes backlink space in header. ie:
lVFP = ( (Fcount()+1)*32+263+1 = header() )
or :
lVFP = ( Header() - (Fcount()+1)*32-1 = 263 )
Cetin