PtAddResource

PtAddResource — adds a resource.

Syntax

PtAddResource (resnum, name)

		

Arguments

resnum

An integer resource number.

name

A character string resource name.

Returns

The resnum.

Description

This function adds new resources. The first time a resource is added, an array is created internally to catalog it. Each additional resource is cataloged in the array. If the passed resnum already belongs to an existing resource, the same resnum is returned, but PtAddResource leaves the existing resource intact and does not add anything.