Returns the indicated resource from the indicated resource list, if the resource is in the current document. Otherwise it returns nil.
FUNCTION GetResourceFromList(
listID : LONGINT;
index : LONGINT): HANDLE;def vs.GetResourceFromList(listID, index):
return HANDLE| Name | Type | Description |
|---|---|---|
| listID | LONGINT | an ID for a resource list created by the BuildResourceList command. |
| index | LONGINT | an index into the list. |
You can check the referenced status of a resource with the object preference 700:
IsReferenced := GetObjectVariableBoolean(handleToResourceDefinition, 700);
{locked/referenced status }Availability: from VectorWorks12.0