Location:
D32DBMS.H
Link against: edbms.lib
class TDbKeyCol;
Defines a key column in an index.
The data members are public as this is really a structure to group the attributes of the key column together. Two non-default constructors are provided for convenience.
Defined in TDbKeyCol
:
EAsc
, EDesc
, TDbKeyCol()
, TDbKeyCol()
, TDbKeyCol()
, TOrder
, iLength
, iName
, iOrder
inline TDbKeyCol();
Constructs an uninitialised object. Default constructor. It is necessary because there are also non-default constructors in this class.
IMPORT_C TDbKeyCol(const TDesC &aName, TOrder anOrder=EAsc);
|
IMPORT_C TDbKeyCol(const TDesC &aName, TInt aLength, TOrder anOrder=EAsc);
Constructs an object with the given name, ordering and optional truncation length.
|
TOrder
Specifies whether a key column in an index should be sorted in ascending or descending order.
|
TInt iLength;
The maximum number of characters used to index Text or LongText columns. If equal to KDbUndefinedLength (the default), all the characters in the defined column will be used.
TDbColNameC iName;
The column name for the key.