Difference between revisions of "GetSubQuestionText"

From Catglobe Wiki
Jump to: navigation, search
(getSubQuestionText)
Line 4: Line 4:
 
====getSubQuestionText====
 
====getSubQuestionText====
  
Returns a string of subquestion text, apply for grid questions
+
Returns a string of subquestion text, apply for grid questions. This function run in question context
  
 
'''Syntax'''
 
'''Syntax'''

Revision as of 05:13, 23 August 2019



getSubQuestionText

Returns a string of subquestion text, apply for grid questions. This function run in question context

Syntax

getSubQuestionText(questionLabel, gridNumber)

or

getSubQuestionText(questionPath, gridNumber)

Arguments

questionLabel: is a string expression. It is the label of the question.

questionPath: is a string expression. It is the path of the question.

gridNumber: is the index of the sub question in the sub question list.

Return type

string

Example

string text = getSubQuestionText("Q1", 0);
//or
string text = getSubQuestionText(Q1.QuestionLabel, 0);
//or
string text = getSubQuestionText(Resource_getResourceName(qnaireRId) + "\\Q1", 0);

Availability

Version 5.2