PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Allowed operations
  • Various
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
OLEPlay (Function)
In French: OLEJoue
Allows:
  • retrieve the list of available operations (other than edit) from a server,
  • perform an operation. In this case, the server must have been started by OLEActivate, OLECreateCopy or OLECreateEmpty with <Lock> set to False.
Example
// Creates an object form a .WAV file
OLECreateCopy(OLE_OLE1, "C:\Windows\tada.wav", False)
// Plays the .WAV
OLEPlay(OLE_OLE1, "&Playing")
ListAdd(LIST_List1, OLEPlay(OLE_OLE1))
Syntax

Running a specific action on an object Hide the details

<Result> = OLEPlay(<Control Name> , <Action to Run>)
<Result>: Boolean
  • True if the action was performed,
  • False otherwise.
<Control Name>: Character string (with or without quotes)
Name of the OLE control associated with the OLE object. If this parameter corresponds to an empty string (""), the control to which the current process belongs will be used.
<Action to Run>: Character string (with quotes)
Text of the action (verb) to run. Indicates the requested process to the server. This information is required in order to allow the OLE client to process the linked object without knowing the structure of the data incorporated in the OLE object.

Retrieving the list of actions recognized by an OLE server Hide the details

<Result> = OLEPlay(<Control Name>)
<Result>: Character string
List of actions (verbs) recognized by the OLE server in the following format:
<Verb1> + CR + <Verb2> + CR + ... + CR + <Verb N>
These verbs correspond to menu choices and they usually contain a '&' character indicating the shortcut. This character must not be deleted during the call to OLEPlay.
<Control Name>: Character string (with or without quotes)
Name of the OLE control associated with the OLE object. If this parameter corresponds to an empty string (""), the control to which the current process belongs will be used.
Remarks

Allowed operations

Some OLE servers allow their clients to perform operations other than edit on the objects. For example, the sound recorder of Windows (SOUNDREC.EXE) can also be used to read an object (.WAV or.MID.

Various

Only OLE version 1 is supported.
Components
WINDEVReports and Queries wd230ole.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment