CdbField::SetName, GetName Property

Sets or returns a user-defined name for a CdbField object. For an object not appended to a collection, this property is read/write.

Settings and Return Values

The setting or return value is a CString that specifies a name. The name must start with a letter. The maximum number of characters 64. It can include numbers and underscore characters but can't include punctuation or spaces. See details in the core topic Remarks.

Syntax

VOIDSetName(LPCTSTR pstr);

CStringGetName(VOID);

Set Parameters

Type Example Description
LPCTSTR pstr A pointer to a string that contains the name of the field.