AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Sintaxis WLanguage / Instrucciones estructuradas
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
The FOR EACH statement is used to browse the available values in the enumerations.
Remark: The FOR ALL, FOR EACH statements are accepted. The FOR EACH statement will be used in this documentation but it can be replaced with FOR ALL.
Example
// Browse the enumeration options
// ---------------------------------------
// Declaration code
// Declare an enumeration
RobotType is Enumeration
Walk
Stopped
InMaintenance
OutOfOrder
END
// Browse the values
FOR EACH Option OF RobotType
Trace(Option..Name)
END
Syntax
FOR EACH <MyValue> OF <Enumeration>
    ...
END
<FOR EACH>:
Marks the beginning of the statement block.
<MyValue>:
Value description variable corresponding to the enumeration value. There is no need to declare this variable.
<Enumeration>:
Enumeration containing the values to browse.
Versión mínima requerida
  • Versión 23
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local