Imagelist.count Method [AX 2012]

Retrieves the number of images in an image list.

public int count()

Run On

Client

Return Value

Type: int
An integer that represents the number of images in the list.

The following example creates an image list, loads icons from the shell.dll file, and then prints the number of images in the list.

Imagelist list; 
int       counter; 
  
list = new Imagelist( 
   Imagelist::iconWidth(), 
   Imagelist::iconHeight() ); 
  
list.loadIcons('shell32.dll'); 
print list.count(); 
pause;

Community Additions

ADD
Show: