Loading...
 

Enumtranstable-Combo-Syntax

The combo box also uses an enumeration table, whereby the information for the translation into a numerical value is of course ignored (in the ClassiX® system there is a uniform table format).

Syntax of the enumeration transformation table:
Entry
:= ganzeZahl, Bezeichner, Maske
Identifier
:= String | multiple String-Konstante
List
:=  Liste | Liste Eintrag
Table
:= Liste | sectionName { Liste }

Example:


paymentEnum
{
0, T("Überweisung", Remittance), 0xff
1, T(Scheck, Cheque), 0xff
2, T(Bankeinzug, Draft), 0xff
3, T(Bar, Cash), 0xff
}

Several transformation tables can be combined in one file. In this case, however, a section name must be specified. The table can be divided hierarchically using the flags assigned to each entry. The enumeration window object shows only the entries that its internal filter flag selects. The latter is initialised with 0xff, but can be changed with SetFlags.

Instead of files, transformation tables can also be stored in the database (see statement SaveEnumTbl), i.e. as objects of the class CX_ENUM_TABLE. If the ClassiX® system has to transform an enumeration element, it first searches for the corresponding table in the database, then as file.