(Created page with "<seo title="Database Files With Headers | vEdit" description="With vEdit you can quickly read and edit data files, articularly database files, consist of fixed-length records...")
 
(Related Resources)
 
Line 13: Line 13:
 
==Related Resources==
 
==Related Resources==
 
*[[Binary_Text_File_Types|Binary/Data and Text File Types]]
 
*[[Binary_Text_File_Types|Binary/Data and Text File Types]]
 +
*[[Main_Page#section-editing|Edit EBCDIC, ASCII, ANSI, Hex, Text and Multiple Files]]
 +
*[[Main_Page|Wiki Home]]

Latest revision as of 16:54, 20 February 2017


Some data files, particularly database files, consist of fixed-length records that follow a variable length header. As described above, to edit these files CONFIG > File handling > File type should be set to the length of the records. However, since the header is usually not the same length as the records, the beginning of each record will not be displayed at the beginning of a screen line and the fields in the records will not be lined up.

You can make these files easier to edit by setting CONFIG > File handling > Record header size to the size of the header in bytes. Each following record will then start on a new screen line and the fields in the records will be aligned on the screen.

The status line displays a line number of “0” when the cursor is in the header. This makes the line number correspond to the record number.

xBase Files
VEDIT can configure itself to dBase and xBase database files by selecting MISC > More macros > dBasekey. This macro reads the header size and record size from the current “.DBF” file and configures VEDIT accordingly.

Related Resources