PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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 a variable added by DeclareAWPContext from the AWP context.
Note: Operates only when contexts are managed on disk (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 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. To handle a session again, you must use ConfigureAWPContext.
  • Versions 20 and later
    If your project uses pre-launched sessions, this function must not be used in the event "Initializing" of the project. This function must be used in the event "Initializing the project after connection to the site".
    New in version 20
    If your project uses pre-launched sessions, this function must not be used in the event "Initializing" of the project. This function must be used in the event "Initializing the project after connection to the site".
    If your project uses pre-launched sessions, this function must not be used in the event "Initializing" of the project. This function must be used in the event "Initializing the project after connection to the site".
Component : wd240page.dll
Minimum version required
  • Version 12
Comments
Click [Add] to post a comment