ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous WINDEV functions
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
Component (Type of variable)
In french: Composante
The Component type is used to easily handle an external component. This makes it possible to get a global interface that can be used in the component.
Example
// Load a component
compo is Component
IF ComponentLoad(compo, fExeDir() + fSep() + "ComponentExample.wdk") THEN
Trace("OK")
// Execution of the component procedures
Trace(ComponentExecute("GlobalProcedures.Test"))
Trace(ComponentExecute("GlobalProcedures.TestWithParameters", (1)))
END
Syntax
MyVariable is Component
Remarks
  • To initialize a Component variable, use ComponentLoad.
  • A Component variable can be handled using the following functions:
    ComponentExecuteExecutes a global procedure present in an external component. This external component is loaded with ComponentLoad.
    ComponentLoadLoads an external component. This component can be:
    • an external component present in the current project.
    • an external component independent of the current project.
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/09/2023

Send a report | Local help