PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Declaration and use
  • Syntax
  • Example
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
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.
For more details on enumerations, see Enumeration (Type of variable).
Declaration and use

Syntax

NomEnumération est une Enumération
Valeur possible 1
Valeur possible 2
...
FIN


NomVariable est un NomEnumération

NomVariable = Valeur possible 1

Example

  • Declare the enumeration:
    // Déclarations globales de la fenêtre XXX
    ActionPossible is Enumération
    Création
    Modification
    Suppression
    Impression
    END
    // Utilisation de l'énumération
    ParamAction is ActionPossible
     
    ParamAction = Création
     
    Open(FEN_Client, ParamAction)
  • In the "Global declarations" event of WIN_Customer:
    PROCÉDURE FEN_Client(ModeTravail is ActionPossible)
The following functions are used to handle an enumeration through programming:
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment