|
|
|
|
- Declaration and use
- Syntax
- Example
How to manage enumerations programmatically?
An enumeration is a type of variabble containing a list of values. This type of variable is used, for example, to normalize the possible values of a parameter. Therefore, the developer will be able to initialize this parameter from the possible values imposed by the enumeration. The variable associated with this enumeration can take a single list value. Syntax
EnumerationName is Enumeration Possible value 1 Possible value 2 ... END
VariableName is EnumerationName
VariableName = Possible value 1
Example - Declare the enumeration:
// Global declarations of the XXX window PossibleAction is Enumération Creation Modification Deletion Printing END
// Use the enumeration ActionParam is PossibleAction ActionParam = Creation Open(WIN_Customer, ActionParam)
- In the "Global declarations" event of WIN_Customer:
PROCÉDURE WIN_Customer(WorkingMode is PossibleAction)
The following functions can be used to handle enumerations:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|