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 / Instrucciones estructuradas
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
The return value of the process currently run can be assigned. The return value is stored and the process continues to run
Ejemplo
PROCEDURE ChercheFichier(ValeurRecherche)
// Par défaut, si la valeur recherchée n'est pas trouvée, on renvoie ""
RETURN = ""
// On ouvre le fichier de données
HOpen(UnFichier)
// On cherche l'enregistrement
HReadSeek(UnFichier, RubriqueRecherche, ValeurRecherche)
// Si on a trouvé l'enregistrement, on récupère la rubrique
IF HFound() = True THEN
	RETURN = UnFichier.Rubrique
END
// On referme le fichier de données
HClose(UnFichier)
Sintaxis
RETURN = <Value>
<Value>:
Value to return.
Observaciones
  • At the end of processing, there's no need to use the RETURN keyword: the stored value is automatically returned.
  • The return value can be assigned several times: the stored value always corresponds to the last value assigned.
  • To read the stored value again, use the RETURN keyword:
    PROCEDURE MaProcédure(): int
    RETURN = 1
    
    END:
    Trace("Valeur retournée:" + RETURN)
  • To exit the process before the end of the code and return the stored value, use the RETURN keyword.
  • To exit the process before the end of the code and return a value different from the stored value, use the standard syntax:
    RENVOYER <Valeur>
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