SOFIELDSOFIELD*
*Contents  *Index  *Topic Contents
*Previous Topic: SOEMBEDINFO
*Next Topic: SOFILTERINFO

SOFIELD

Contains information about a field in a database.

Syntax

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_CELLBCD8IPacked BCD excess-63. See BCD8 for more information.
SO_CELLEMPTYThe cell is empty.
SO_CELLERRORThe cell has an error condition.
SO_CELLIEEE4IIEEE 4-byte in Intel® (PC) ordering. See IEEE4 for more information.
SO_CELLIEEE8IIEEE 8-byte in Intel (PC) ordering. See IEEE8 for more information.
SO_CELLIEEE10IIEEE 10-byte in Intel (PC) ordering. See IEEE10 for more information.
SO_CELLINT32S32-bit signed integer. See Int32S for more information.
SO_CELLINT32U32-bit unsigned integer. See Int32U for more information.
SO_FIELDTEXTFIXThe field contains a string of fixed length.
SO_FIELDTEXTVARThe 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.

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.