Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 945 Bytes

File metadata and controls

37 lines (29 loc) · 945 Bytes

GetResourceFromList

Description

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

Parameters

Name Type Description
listID LONGINT an ID for a resource list created by the BuildResourceList command.
index LONGINT an index into the list.

Remarks

You can check the referenced status of a resource with the object preference 700:

IsReferenced := GetObjectVariableBoolean(handleToResourceDefinition, 700);
{locked/referenced status }

Examples

WorkingWithResrouceList

Version

Availability: from VectorWorks12.0

Category