load_query

Declaration

load_query (name: STRING)

Description

Loads the query identified by name. If it doesn't exist, a new default query is created. Used in conjunction with save_query. The new query's initial properties can be set with set_default_column_properties.

See Also

save_query
set_default_column_properties
database functions
Database

Example

script load_query is
  questions_query_frame := 'content'
    -- associate the questions query with the frame 'content'
  load_item_in_frame ('content', 'main_window_frame')
    -- load content into the main frame of window 'main'
  load_query ('questions')
    -- when the query is loaded, the first item is automatically displayed
    -- in 'content'
end