ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Re: ... n'est pas une table   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

ven. 16 février 2018, 11h10
Jean =c3=a0 Grenoble
atoutfox.public.association

Re: ... n'est pas une table

voici la structure le l'entête d'une table

Table Header Record Structure
Byte offset Description
0 File type:
0x02 FoxBASE / dBase II
0x03 FoxBASE+ / FoxPro /dBase III PLUS / dBase IV, no memo
0x30 Visual FoxPro
0x31 Visual FoxPro, autoincrement enabled
0x32 Visual FoxPro, Varchar, Varbinary, or Blob-enabled
0x43 dBASE IV SQL table files, no memo
0x63 dBASE IV SQL system files, no memo
0x83 FoxBASE+/dBASE III PLUS, with memo
0x8B dBASE IV with memo
0xCB dBASE IV SQL table files, with memo
0xF5 FoxPro 2.x (or earlier) with memo
0xFB FoxBASE (?)
1 - 3 Last update (YYMMDD)
4 – 7 Number of records in file
8 – 9 Position of first data record
10 – 11 Length of one data record, including delete flag
12 – 27 Reserved
28 Table flags: 0x01 file has a structural .cdx
0x02 file has a Memo field
0x04 file is a database (.dbc)
This byte can contain the sum of any of the above values.
For example, the value 0x03 indicates the table has a
structural .cdx and a Memo field.
29 Code page mark
30 – 31 Reserved, contains 0x00
32 – n Field subrecords The number of fields determines the number of field
subrecords. One field subrecord exists for each field in the table.
n+1 Header record terminator (0x0D)

n+2 to n+264 A 263-byte range that contains the backlink, which is the relative
path of an associated database (.dbc) file, information. If the first byte is
0x00, the file is not associated with a database. Therefore, database files
always contain 0x00.


Tu trouveras un exemple de modification de l'entete dans
vfp9\Tools\cpzero\cpzero.prg

Bon courage
Jean à Grenoble

Permalink : http://www.atoutfox.org/nntp.asp?ID=0000018856
20 088 messages dans le forum • Liste complète des messages

Publicité

Les pubs en cours :


www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2024.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3