LABELS

Concept Link IconSee also

Gets text and binary attribute labels.

WebVue support - Yes.

Mode

Mnemonic

Syntax

1 GET_EXTTEXTATTR 1
2 GET_EXTBINATTR 2
3 GET_EXTBITBINATTR 3

Syntax 1

StrVal = LABELS(Mode, Index);

Return type: STR.

Argument

Meaning

Index

The index of a text extended attribute. Range 3..16. Type INTEGER.

Execution

Mode

Mnemonic

Action

1 GET_EXTTEXTATTR

Gets text attribute labels.

Return: The label of the text attribute Index (customized or default) or an empty string if an error occurred.

Syntax 2

StrVal = LABELS(Mode);

Return type: STR.

Execution

Mode

Mnemonic

Action

2 GET_EXTBINATTR

Gets binary attribute labels.

Return: The label of the binary attribute (customized or default) or an empty string if an error occurred.

Syntax 3

StrVal = LABELS(Mode, bitIndex);

Return type: STR.

Argument

Meaning

bitIndex

The index of a bit of the binary extended attribute. Range 1..32. Type INTEGER.

Execution

Mode

Mnemonic

Action

3 GET_EXTBITBINATTR

Gets binary attribute labels.

Return: The label of the binary attribute bit bitIndex (customized or default) or an empty string if an error occurred.

Example

Copy
Sub main()

    Dim sLabel as STR;
    
    sLabel = Labels("GET_EXTTEXTATTR", 3);
    Print("TATT3 label is = ", sLabel);
    
    sLabel = Labels("GET_EXTTEXTATTR", 16);
    Print("TATT16 label is = ", sLabel);

    sLabel = Labels("GET_EXTBINATTR");
    Print("BATT label is ", sLabel);

    sLabel = Labels("GET_EXTBITBINATTR", 1);
    Print("BATT1 label is ", sLabel);

    sLabel = Labels("GET_EXTBITBINATTR", 32);
    Print("BATT32 label is ", sLabel);

End sub