getImageCount()

Returns the number of pictures in an fglgallery.

Syntax

getImageCount( id SMALLINT )
  RETURNS INTEGER
  1. id is the fglgallery identifier, as returned by the create() function.

Usage

This function the number of pictures in the specified fglgallery web component.

The id parameter is the fglgallery handler returned by the create() function.

In an fglgallery web component, pictures are identified by their ordinal position. This function can be used to loop through the picture indexes.

Example

FOR idx = 1 TO fglgallery.getImageCount(id)
    DISPLAY fglgallery.getPath(id, idx)
END FOR