|
|
OCGetVerbs(p_AreaVar;p_Blob)
This method
retrieves all custom verbs of an Ole object. Object, whose verbs are retrieved,
is instantiated in the area passed as parameter.
Parameters
| Parameter |
Type |
|
Description |
| p_AreaVar |
Longint |
-> |
Variable of the plug-in area. |
| p_Blob |
Blob |
<- |
Blob where the verbs are returned
|
Return Values
0 – The method call was successful.
If
the method call was not successful the return value is non zero. For more information
call OCLastError.
Remarks
The
format of the verbs returned in blob is
<id of verb> <length of verb description><verb description>
The <id of verb> and <length of verb description> have each the fixed size of 10 bytes.
The
<length of verb description> contains the size of the verb description expressed in bytes.
The blob, passed as parameter, must be initialized (it must have a length greater
then 0)
At the time OCGetVerbs
is called the plug-in area passed
as parameter must contain an Ole object.
Here is a sample of how a blob could look like: "00000000010000000004Edit".
First 10 bytes
"0000000001" are the id of the verb. Next 10 bytes "0000000004" are the length of the verb description, and "Edit" is the description of the verb.
Example
C_BLOB(MyBlob)
$i:=OCGetVerbs (OCONT1;MyBlob)
$s:=BLOB to text(MyBlob;0)
ALERT($s)
See Also
OCGetVerbs,OCDoVerb
|
|