ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / OLE functions
  • Initializing a List Box control with the OLE servers
  • Miscellaneous
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
OLEServer (Function)
In french: OLEServeur
Lists the OLE servers registered toward the current system.
Example
// Initialize the List Box control with the available OLE servers
ListAdd(LIST_OLESERV, OLEServer())
// Retrieve the server to start
Choice is string
Sub is int = ListSelect(LIST_OLESERV)
Choice = LIST_OLESERV[Sub] + TAB
Choice = ExtractString(Choice, 2)
OLECreateEmpty(OLE_OLE1, Choice)
Syntax
<Result> = OLEServer()
<Result>: Character string
  • List of the OLE servers presented in the following format:
    <Description 1> + TAB + <Name of Server 1> + <CR>+ ...
    + CR + <Description N> + TAB + <Name of Server N>
    Then, the name of the server can be used in OLECreateEmpty.
    Remark: the list of servers may contains empty strings (to delete if necessary).
  • Empty string ("") if an error occurred.
Remarks

Initializing a List Box control with the OLE servers

To fill a List Box (or a Combo Box control) with the list of OLE servers, use ListAdd. The following syntax must be used:
ListAdd(<Name of List Box control>,OLEServer())

Miscellaneous

Only OLE version 1 is supported.
Component: wd290ole.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help