DictField.labelDefined Method

Returns the value of the label property for the field.

Syntax

public str labelDefined()

Run On

Called

Return Value

Type: str
The value of the label property for the table; an empty string if there is no label text for the table.

Remarks

Unlike the label method, the labelDefined method does not return the extended data type label if the field is based on an extended data type and has no label defined for it.

Examples

The following example shows the retrieval of the defined label for a field.

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

See Also

Reference

DictField Class