Retrieves any description text that exists for a specified object and passes it back in the descriptionText argument. The descriptionText argument will be empty if the object has no description text.
PROCEDURE GetDescriptionText(
hObject : HANDLE;
VAR descriptionText : DYNARRAY[] of CHAR);def vs.GetDescriptionText(hObject):
return descriptionText| Name | Type | Description |
|---|---|---|
| hObject | HANDLE | Handle of object for which to retrieve the text. |
| descriptionText | DYNARRAY[] of CHAR | Object's description text, if any exists. |
Added for T01363 to add descriptions for classes and layers.
PROCEDURE GetDescExample;
VAR
descriptionTextDyn :DYNARRAY [] of CHAR;
tempH : HANDLE;
BEGIN
tempH := GetObject ('Dimension');
GetDescriptionText (tempH, descriptionTextDyn);
IF descriptionTextDyn <> '' THEN
Message (descriptionTextDyn)
ELSE
Message ('no description');
END;
Run (GetDescExample);VS Functions: SetDescriptionText
Availability: from Vectorworks 2015