PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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(<OLE control> , <Action to run>)
<Result>: Boolean
  • True if the action was performed,
  • False otherwise.
<OLE control>: Control name
Name of the OLE control associated with the OLE object. If this parameter corresponds to an empty string (""), the control used will be the control to which the current event belongs.
<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(<OLE control>)
<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.
<OLE control>: Control name
Name of the OLE control associated with the OLE object. If this parameter corresponds to an empty string (""), the control used will be the control to which the current event belongs.
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.
Component : wd240ole.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment