AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones varias de WINDEV
  • EndService and EndProgram functions
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
Ends the execution of the current program.
WINDEV All the windows are closed and no code is run.
Universal Windows 10 AppiPhone/iPadIOS WidgetApple WatchMac Catalyst This function should only be used for debugging as the license of this type of hardware does not allow closing the application.
Example
WINDEVReports and QueriesUniversal Windows 10 AppJavaUser code (UMC)
// Check password
IF Password <> "Rantanplan" THEN
EndProgram("Wrong password")
END
WEBDEV - Server codePHPAjax
// Check password
IF Password <> "Rantanplan" THEN
PageDisplay(PAGE_End)
EndProgram()
END
Syntax
EndProgram([<Line 1> [... [, <Line N> [, <Closing code>]]]])
<Line 1>: Optional character string
Lines of the message to display when the program is ended. This message is displayed in an "Error" dialog box.
<Line N>: Optional character string
Lines of the message to display when the program is ended. This message is displayed in an "Error" dialog box.
<Closing code>: Optional boolean
  • False (default value) if the project closing code is not run.
  • True if the project closing code is run.
Remarks

EndService and EndProgram functions

In a service:
  • EndService ends the execution of the service by performing the following operations:
    • configuring the execution of the closing codes
    • simulating a service failure, which triggers OS failure recovery actions (automatic restart, or reboot in Windows, for example).
  • EndProgram can be used with the following specific features:
    • the message is ignored.
    • closing codes are run (or not) depending on the boolean specified as the last parameter.
    • the service ends normally and no failure is simulated.
In an application, EndService can be used with the following specific features:
  • no message is displayed when exiting the application.
  • closing codes are run (or not) depending on the specified closing option.
  • the failure option has no effect.
Related Examples:
WD Magnifier Complete examples (WINDEV): WD Magnifier
[ + ] This example enables you to zoom part of the screen with a magnifier.
The maximum zoom value is set to 8.
Summary of the example supplied with WINDEV:
The WLanguge function named dCopyBlt() and the WLanguage property named ..Opacity allow you to perform a capture of the Windows desktop at the location of a window without this window appearing in the screen shot.
This example uses this tip to zoom the part of the screen found below the magnifier.
Component: wd290vm.dll
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 22/06/2023

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