Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange format of .DBF/.DBT files
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01048208
Message ID:
01048231
Vues:
15
Sergey,
I ran the code against one of the tables and it returned
139 0x0000008B
What does it tell me about the type of file it is?
Thank you

>You can determine the type of the table with following code (which is similar to VFP sys(2029))
>
lcTable = "mytable"
>lcPath = "C:\myfolder\"
>lnFH = FOPEN(lcPath + lcTable + ".dbf", 12)
>lnByte1 = ASC(FREAD(lnFH,1))
>= FCLOSE(lnFH)
>? lnByte1, TRANSFORM(lnByte1, "@0")
>
>
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform