Xbase64 4.0.1
C++ Library for handling Xbase (DBF) format type files
Data Fields
xb::xbSchema Struct Reference

Schema used for defining tables with CreateTable methods. More...

#include <xbdbf.h>

Data Fields

char cFieldName [11]
 
char cType
 
xbInt16 iFieldLen
 
xbInt16 iNoOfDecs
 

Detailed Description

Schema used for defining tables with CreateTable methods.

See program xb_ex_v3_create_dbf.cpp or xb_ex_v4_create_dbf.cpp as examples on how to use.

xbSchema MyRecord[] = {
// FieldName, Type, Len, Dec
{ "FIRSTNAME", XB_CHAR_FLD, 15, 0 },
{ "LASTNAME", XB_CHAR_FLD, 20, 0 },
{ "BIRTHDATE", XB_DATE_FLD, 8, 0 },
{ "AMOUNT", XB_NUMERIC_FLD, 9, 2 },
{ "RETIRED?", XB_LOGICAL_FLD, 1, 0 },
{ "ZIPCODE", XB_NUMERIC_FLD, 5, 0 },
{ "NUMFLD1", XB_FLOAT_FLD, 12, 2 },
{ "NUMFLD2", XB_FLOAT_FLD, 14, 2 },
{ "MEMO1", XB_MEMO_FLD, 10, 0 },
{ "",0,0,0 }};
#define XB_CHAR_FLD
Definition: xbdbf.h:29
#define XB_MEMO_FLD
Definition: xbdbf.h:33
#define XB_LOGICAL_FLD
Definition: xbdbf.h:30
#define XB_DATE_FLD
Definition: xbdbf.h:32
#define XB_FLOAT_FLD
Definition: xbdbf.h:34
#define XB_NUMERIC_FLD
Definition: xbdbf.h:31

Field Documentation

◆ cFieldName

char xb::xbSchema::cFieldName[11]

◆ cType

char xb::xbSchema::cType

◆ iFieldLen

xbInt16 xb::xbSchema::iFieldLen

◆ iNoOfDecs

xbInt16 xb::xbSchema::iNoOfDecs

The documentation for this struct was generated from the following file: