current_item_index

Declaration

current_item_index: INTEGER

Description

Index of the current item in the current query. Calls to next, previous or updating the query change the current item in the query. A value of 1 corresponds to the first item. Value must be between 1 and total_items.

See Also

current_item_name
database functions
Database

Example

script show_current_item is
  message ('current item is ' . column_value ('name', current_item_index), Message_info)
end