Indicates whether the current process is run:
- from a WINDEV executable.
- from the WEBDEV runtime engine (AWP).
Remark: For codes shared between a WINDEV application and a WEBDEV site (code of a class, component, etc.), this function allows you to identify the runtime mode and to start the appropriate process.
This function has no effect in this version.
// Start mode?
IF InWebMode() = True THEN
// Process run from the runtime engine of WEBDEV:
// Call to the "WebSendPage" procedure
// Process run from a WINDEV executable
// Display a dialog box
- True if the code is run by the runtime engine of WEBDEV,
- False otherwise.
This parameter always corresponds to False
Sharing components and classes between WINDEV and WEBDEV
InWebMode allows you to easily share classes or components developed in WLanguage between a WEBDEV site and a WINDEV application. Depending on whether the application is run in Web mode or not, different functions can be used, specific to the current application.
Running processes containing compilation errors
By default, the security mechanism of WLanguage is triggered only if the line containing the compilation error is run.
For example, if a function not allowed in the current product is found in a loop (IF), the security mechanism of WLanguage will be triggered only if the line containing this function is run.
Availability of the function
InWebMode can be used in all IDEs to allow for cross-platform code. Functions or procedures that use InWebMode can be shared between several products without generating any compilation error.
Business / UI classification: Neutral code