Image::resourceType Method [AX 2012]

Determines whether a particular resource is a bitmap or an icon.

client public static int resourceType(int resourceIdx)

Run On

Client

Parameters

resourceIdx
Type: int
The ID of the resource that you want to load.

Return Value

Type: int
0 if the image is a bitmap; 1 if it is an icon.

The values of resources can be found in the Resources macro.

The following example tests whether resource 3020 is an icon or a bitmap.

#Resource 
 
print Image::resourceType(3020); 
pause;
Show: