Official Content

It's a Domain with a finite number of values.

Each value has a Code, a Name, and a Value.

Example

"CardType" Domain
Code: Credit, Name: Credit, Value: 0
Code: Debit, Name: Debit, Value: 1

If an Attribute or Variable is based on an Enumerated Domain, it will be displayed in the Form as a combo box.

It's a good practice to use an enumerator instead of using the value, as shown below:

&Var = 1              //BAD
&Var = CardType.Debit //GOOD

You can define the specific values for a Domain through its Enum Values property.

   

Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant