Share via


DictField.name Method

Returns the name of the field.

Syntax

public str name(
   [DbBackend db, 
    int arrayindex, 
    FieldNameGenerationMode generationMode, 
    str tableAlias])

Run On

Called

Parameters

  • db
    Type: DbBackend Enumeration
    A DbBackend value that specifies the type of database backend; optional.
  • arrayindex
    Type: int
    An array index entry for the name to retrieve; optional.
  • tableAlias
    Type: str
    The alias for the table; optional.

Return Value

Type: str
The name of the field.

Examples

The following example shows the retrieval of the name of the field.

DictField df; 
 
df = new DictField(tablenum(CustTable), fieldnum(CustTable, AccountNum)); 
 
if (df) 
{ 
    print df.name(); 
}

See Also

DictField Class

DbBackend Enumeration

FieldNameGenerationMode Enumeration