Compartir a través de


DictField.labelDefined Method

Definition

Returns the value of the label property for the field.

public:
 virtual System::String ^ labelDefined();
public virtual string labelDefined ();
abstract member labelDefined : unit -> string
override this.labelDefined : unit -> string
Public Overridable Function labelDefined () As String

Returns

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.

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(); 
}

Applies to