ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Web services
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
CancelWebserviceContext (Function)
In french: AnnuleContexteWebservice
Deletes from the webservice context a variable added by DeclareWebserviceContext.
Example
GLOBAL
gsMyGlobal is string
 
IF DeclareWebserviceContext(gsMyGlobal) = False THEN
// Initialize with the default value
gsMyGlobal = InitialValue()
END
...
 
// Deletes the value if an error occurs
IF bError THEN
CancelWebserviceContext(gsMyGlobal)
END
Syntax
CancelWebserviceContext([<Name of variable 1> [... [, <Name of variable N>]]])
<Name of variable 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 variable is specified, the entire session is canceled: all the 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 "Initialize project after connecting to the site" event.
Component: wd290awws.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help