ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Web service functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
CancelWebserviceContext (Function)
In french: AnnuleContexteWebservice
Deletes from the web service context a variable added by DeclareWebserviceContext.
Example
GLOBAL
	gsMaGlobale is string

IF DeclareWebserviceContext(gsMaGlobale) = False THEN
	// Initialisation avec la valeur par défaut
	gsMaGlobale = ValeurInitiale()
END
...

// En cas d'erreur supprime la valeur
IF bErreur THEN
	CancelWebserviceContext(gsMaGlobale)
END
Syntax
CancelWebserviceContext([<Variable name 1> [... [, <Name of variable N>]]])
<Variable name 1>: Type of variable (optional parameter)
Name of the first variable that must be deleted from the context.
<Name of variable N>: Type of variable (optional parameter)
Name of the Nth variable that must be deleted from the context.
Remarks
  • No error occurs if the variable does not exist.
  • If no variables are specified, the entire session is cancelled: all stored variables are lost, and the session file is destroyed.
  • If your project uses pre-launched sessions, this function must not be used in the project initialization event. This function must be used in the "Initialization in pre-launched session mode" event.
Component: wd300awws.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/25/2025

Send a report | Local help