PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Deletes from the AWP context a variable added by DeclareAWPContext.
Note: Operates when contexts are managed on disk only (ConfigureAWPContext).
Example
GLOBAL
gsMyGlobal is string

IF DeclareAWPContext(gsMyGlobal) = False THEN
// Initialize with the default value
gsMyGlobal = InitialValue()
END
...

// Deletes the value if an error occurs
IF bError = True THEN
CancelAWPContext(gsMyGlobal)
END
Syntax
CancelAWPContext([<Name of Variable 1> [, ... [, <Name of Variable N>]]])
<Name of Variable 1>: Type of the variable (optional parameter)
Name of the first variable that must be deleted from the context.
<Name of Variable N>: Type of the 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. To handle a session again, you must use ConfigureAWPContext.
  • Versions 20 and later
    If your project is using pre-launched sessions, this function must not be used in the "Initializing the project" process. This function must be used in the "Initializing the project after connection to the site" process.
    New in version 20
    If your project is using pre-launched sessions, this function must not be used in the "Initializing the project" process. This function must be used in the "Initializing the project after connection to the site" process.
    If your project is using pre-launched sessions, this function must not be used in the "Initializing the project" process. This function must be used in the "Initializing the project after connection to the site" process.
Components
WEBDEV - Server code wd230page.dll
Linux wd230page.so
Minimum required version
  • Version 12
Comments
Click [Add] to post a comment