deleteImages()

Deletes pictures used in an fglgallery.

Syntax

deleteImages(
   id SMALLINT,
   indexes DYNAMIC ARRAY OF INTEGER )
  RETURNS STRING
  1. id is the fglgallery identifier, as returned by the create() function.
  2. indexes is the dynamic array of indexes of the pictures to remove from the gallery.

Usage

This function deletes the specified pictures from the fglgallery.

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

The indexes parameter is a DYNAMIC ARRAY OF INTEGER that defines a set of picture indexes. Each corresponding picture reference will be removed from the image gallery.

The new gallery is automatically displayed to the end user.

Example

DEFINE todel DYNAMIC ARRAY OF INTEGER
LET todel[1] = 3
LET todel[2] = 6
CALL fglgallery.deleteImages(id, todel)