AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Sintaxis WLanguage / Procedimientos WLanguage
  • Overview
  • Procedure and function: local or global
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Overview
A procedure is used to associate an identifier with a statement block. Then, the procedure can be called in a process.
A function is used to define a sub-program that performs several statements before returning a value to the calling program.
Difference between a procedure and a function:
  • A procedure returns no result.
  • A function returns a result.
In WLanguage, there is no distinction between the procedures and the functions. The procedures and the functions are managed in the same way. A procedure, like a function, may (or may not) return a result.
The procedures and the functions can have a fixed or variable number of parameters.
The declaration syntax is the same for the procedures and for the functions. For more details, see the declaration of a procedure or function.
You have the ability to create overloaded procedures. For more details, see Prototype overload.
The calling syntax is the same for the procedures and for the functions. For more details, see the call to a procedure or function.
A procedure (or a function) can be global or local. For more details, see the global and local procedures and functions.
Procedure and function: local or global
Two types of procedures are available:
  • Global procedure: can be used in all project processes. This global procedure is stored in the project.
  • Local procedure: can be used in all processes depending on the object (window or state) in which this procedure has been declared.. This local procedure is stored in the object.
Important: Do not declare two procedures with the same name (in particular, a global procedure and a local procedure).
Note: WLanguage also supports the use of internal procedures. For more details, see Internal procedure.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 24/09/2024

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