ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / OLE functions
  • Initializing a List Box control with the OLE servers
  • Miscellaneous
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
OLEServer (Function)
In french: OLEServeur
Lists the OLE servers registered toward the current system.
Example
// Initialiser le champ Liste avec les serveurs OLE disponibles
ListAdd(LISTE_SERVOLE, OLEServer())
// Récupérer le serveur à lancer
Choix is string
Ind is int = ListSelect(LISTE_SERVOLE)
Choix = LISTE_SERVOLE[Ind] + TAB
Choix = ExtractString(Choix, 2)
OLECreateEmpty(OLE_OLE1, Choix)
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.
    Note: the server list may contain empty strings (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: wd300ole.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help