PA_GetUniqueResID

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_GetUniqueResID (resFile; kind) short

ParameterTypeDescription
resFileshortFile reference number of the file to access
kindunsigned longKind (4 Bytes type) of resource
Function resultshortUnique ID number

Description

The routine PA_GetUniqueResID returns an unique ID number for a resource of type kind in the file referenced by resFile.

Please note that if kind is not an existing resource type in the file or if resFile is an invalid reference number, the routines still return an unique number for that kind and PA_GetLastError() returns 0.

Example

   PA_CreateResource(resFile, 'toto', PA_GetUniqueResID(resFile, 'toto'), data, size);

See Also

No reference.

Error Handling

Use PA_GetLastError to see if an error occurred


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next