L’interface de VDS Renaissance est disponible en plusieurs langues. La documentation officielle est maintenue en anglais afin de garantir une référence unique, cohérente et toujours à jour.

@INDEX

Windows Linux macOS

Syntax

@INDEX( <list> )

Description

This function returns the current index (pointer) value for the string list <list>. The parameter <list> must be either a list number or the name of a list dialog element to which the function will apply. If no list item is selected the value returned by this function is -1.

OK

Unchanged.

Example

LIST CREATE, 1, SORTED
LIST LOADFILE, 1, NAMES.TXT
IF @MATCH(1, John)
  INFO John is at position @INDEX(1) in the list
END
LIST CLOSE, 1

See also