Contains information about a field in a database.
typedef struct SOFIELDtag {
WORD wStructSize;
LONG dwWidth;
char szName[40];
WORD wStorage;
WORD wDisplay;
DWORD dwSubDisplay;
WORD wPrecision;
WORD wAlignment;
} SOFIELD, VWPTR * PSOFIELD;
Members
wStructSize
Size, in bytes, of the structure.
dwWidth
Width, in characters, of the column.
szName
Null-terminated string specifying the name of the field.
wStorage
Storage type. This member can be one of these values:
SO_CELLBCD8I | Packed BCD excess-63. |
SO_CELLEMPTY | The cell is empty. |
SO_CELLERROR | The cell has an error condition. |
SO_CELLIEEE4I | IEEE 4-byte in Intel (PC) ordering. |
SO_CELLIEEE8I | IEEE 8-byte in Intel (PC) ordering. |
SO_CELLIEEE10I | IEEE 10-byte in Intel (PC) ordering. |
SO_CELLINT32S | 32-bit signed integer. |
SO_CELLINT32U | 32-bit unsigned integer. |
SO_FIELDTEXTFIX | The field contains a string of fixed length. |
SO_FIELDTEXTVAR | The field contains a string of unknown length. |
wDisplay
Display type. For more information, see the wDisplay member in the SODATACELL structure.
dwSubDisplay
Display subtype. For more information, see the dwSubDisplay member in the SODATACELL structure.
wPrecision
Precision or positioning value. For more information, see the wPrecision member in the SODATACELL structure.
If wStorage is the SO_FIELDTEXTFIX value, this member specifies the number of characters in the string.
wAlignment
Alignment of data in the cell. This member can be the SO_CELLLEFT, SO_CELLRIGHT, or SO_CELLCENTER value.