ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV and WEBDEV 2024 feature!
Help / WLanguage / WLanguage functions / Controls, pages and windows / 
  • Properties specific to WLanguageCodeCompiling variables
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
WLanguageCodeCompiling (Variable type)
In french: CodeWLangageCompilation
The WLanguageCodeCompiling type is used to define all the compiler options used by the Compile, ExecuteCode and EvaluateExpression functions, as well as by the Code Editor control (via the Compiler property). You can define and change the characteristics of these parameters using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
CompilerOptions is WLanguageCodeCompiling
CompilerOptions.DefaultFunctions = AllFunctions
CompilerOptions.ForbiddenFunctions = "fDelete"

// Code Editor control options
CODEEDT_MyControl.Compiler.DefaultFunctions = AllFunctions
CODEEDT_MyControl.Compiler.ForbiddenFunctions = "fDelete"


// Compile function options
MySourceCode is string = [
PROCEDURE AddXandY(aa, bb)
RETURN aa + bb
]
MyProc is procedure = Compile(MySourceCode, CompilerOptions)
Trace(MyProc(2, 3))
Properties

Properties specific to WLanguageCodeCompiling variables

The following properties can be used to handle WLanguageCodeCompiling variables:
Property nameType usedEffect
AllowedFunctionsCharacter stringList of allowed functions, separated by CR, commas or semicolons.
Example:
"fOpen" + CR + "fCreate"
Remarks:
  • Specify functions using the standard syntax only. The associated prefix syntax will be automatically taken into account.
  • Functions can be in English or French: both languages will automatically be taken into account.
DefaultFunctionsInteger constantSpecifies the functions available by default:
  • AllFunctions: All WLanguage functions are available by default. You can disallow certain functions using the ForbiddenFunctions property.
  • NoFunction: No function available by default. You can allow certain functions using the AllowedFunctions property.
ForbiddenFunctionsCharacter stringList of disallowed functions, separated by CR, commas or semicolons.
Example:
"fOpen" + CR + "fCreate"
Remarks:
  • Specify functions using the standard syntax only. The associated prefix syntax will be automatically taken into account.
  • Functions can be in English or French: both languages will automatically be taken into account.
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/07/2024

Send a report | Local help