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, integer)
- -item_nr (optional, integer)
- -with_numbers (optional, defaults to
"false"
)- -with_title (optional, defaults to
"false"
)- -titleless_form (optional, defaults to
"false"
)- -with_minutes (optional, defaults to
"false"
)- Parameters:
- obj (required, object)
- Testcases:
- No testcase defined.
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