PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Loading an external component
  • Finding the external component to load
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
Specifies the access path to an external component of project. This external component is not loaded.
Note: The mode for loading the external component (when starting the project or when using an element of the external component for the first time) is defined when the external component is included in the project.
Example
// Access path to the component
ResPath is int
ResPath = ComponentLocate(MyComponent, "C:\MyComponents")
SWITCH ResPath
CASE cisAbsent:
Error("The specified component cannot be found in the specified directory")
CASE cisVersionTooOld, cisVersionTooRecent:
Error("The version of the component is not compatible with the executable")
CASE cisLoaded:
Info("The specified component is already loaded")
CASE cisReady:
Info("The specified component is available")
END
Syntax
<Result> = ComponentLocate(<Component Name> , <Access Path to Component>)
<Result>: Integer constant
Status report of operation:
cisAbsentThe external component is not found in the specified path.
cisLoadedThe external component is already loaded. ComponentLocate has no effect.
cisReadyThe external component is available and usable.
cisVersionTooOldThe version of external component is too old. It is not compatible with the current executable.
cisVersionTooRecentThe version of external component is too recent. It is not compatible with the current executable.
<Component Name>: Character string (with or without quotes)
Name of external component (displayed in the editor) whose access path must be specified. A WLanguage error occurs if the name of external component is unknown.
<Access Path to Component>: Character string (with quotes)
Directory of external component (WDK file). This directory may (or may not) end with a "\". A full path, a relative path or a UNC path can be used.
Remarks

Loading an external component

The load mode of the external component (when starting the project or during the first use of a component element) is defined when the external component is included in the project.
To modify this load mode:
  1. Select "Workshop .. External component .. List of components imported into the project".In the project explorer:
    • select the "External components" folder.
    • display the popup menu of this folder (right mouse click)
    • select "List of external components imported into the project".
  2. In the window that is displayed, select the requested external component and click the "Description" button.
  3. Modify the load mode ("Load mode of component").
Reminder: When loading an external component, the following processes are run:
  • declaration process of component classes.
  • declaration process of the sets of procedures of component.
  • initialization process of component.

Finding the external component to load

When loading the external component, the external component will be sought:
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Linux wd230vm.so
Windows Mobile wp230vm.dll
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment