|
|
|
|
- Allowed operations
- Miscellaneous
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.
// 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 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 when OLEPlay is called. <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 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. Only OLE version 1 is supported.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|