xowf::test_item::Question_manager method nth_question_form (public)
<instance of xowf::test_item::Question_manager> nth_question_form \ [ -position position ] [ -item_nr item_nr ] [ -with_numbers ] \ [ -with_title ] [ -titleless_form ] [ -with_minutes ] obj
Defined in packages/xowf/tcl/test-item-procs.tcl
Return the question_info of the nth form (question) of the assessment. The information added to the title can be optionally included as expressed by the non-positional parameters.
- Switches:
- -position
(optional)- -item_nr
(optional)- -with_numbers
(defaults to"false"
) (optional)- -with_title
(defaults to"false"
) (optional)- -titleless_form
(defaults to"false"
) (optional)- -with_minutes
(defaults to"false"
) (optional)- Parameters:
- obj
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- create_test_items
Source code: if {![info exists position]} { set position [$obj property position] } if {![info exists item_nr]} { set item_nr $position } set form_objs [:nth_question_obj $obj $position] if {$with_numbers} { set number [expr {$item_nr + 1}] set extra_flags [list -numbers $number] } else { set extra_flags "" } return [:question_info -with_title=$with_title -titleless_form=$titleless_form -with_minutes=$with_minutes -with_question_count_in_title true {*}$extra_flags -obj $obj $form_objs]XQL Not present: Generic, PostgreSQL, Oracle