set_mark

Declaration

set_mark (column, value: STRING; setting: BOOLEAN)

Description

Sets the marked flag to setting on all items in the current query whose value for column matches value.

The same functionality can be acheived with a custom column, but the 'marked' column is built-in and optimized and may be faster and smaller to store. It's a good way of implementing a guessing or question-marking feature without a custom column.

See Also

database functions
Database

Example

script mark_current_question is
  set_mark ('name', current_item_name, True)
end