VDS Renaissance 的界面提供多种语言。官方文档以英语维护,以确保提供统一、一致且始终最新的参考。

@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