PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Declaration and use
  • Syntax
  • Example
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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.
See Enumeration (Type of variable) for more details.
Declaration and use

Syntax

EnumerationName is enumeration
Possible value 1
Possible value 2
...
END


VariableName is EnumerationName

VariableName = Possible value 1

Example

  • Declaring the enumeration:
    // Declare the global variables of XXX window
    PossibleAction is Enumeration
    Creation
    Modification
    Deletion
    Print
    END
    // Use the enumeration
    ActionParam is PossibleAction

    ActionParam = Creation

    Open(WIN_Customer, ActionParam)
  • In the declaration code of global variables of WIN_Customer window:
    PROCEDURE WIN_Customer(WorkingMode is PossibleAction)
The following functions are used to handle an enumeration by programming:
Minimum required version
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment