Difference between revisions of "GetSubQuestionText"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
 
(jrfconvert import)
Line 4: Line 4:
 
====getSubQuestionText====
 
====getSubQuestionText====
  
Gets the text of a specific subquestion belonging to a question in user’s language or default language.
+
Returns the text of the Subquestion with index in the question named label in the current questionnaire
  
 
'''Syntax'''
 
'''Syntax'''
  
getSubQuestionText(''question, subq_id'')
+
getSubQuestionText(''questionLabel, gridNumber'')
  
 
'''Arguments'''
 
'''Arguments'''
  
''question'': Is an question object.
+
''questionLabel'': is a string expression. It is the label of the question.
  
''subq_id'': Is a numeric expression representing the subquestion.
+
''gridNumber'': is the index of the sub question in the sub question list.
 
 
''subq_id'' must not be a decimal expression.
 
  
 
'''Return type'''
 
'''Return type'''
Line 24: Line 22:
 
'''Example'''
 
'''Example'''
  
question MultiGrid_Question = getQuestion("MultiGrid_Question");
+
string text = getSubQuestionText("MultiGrid_Question", 2);
 
 
string text = getSubQuestionText(MultiGrid_Question, 1);
 
  
 
print(text);
 
print(text);
Line 32: Line 28:
 
'''Availability'''
 
'''Availability'''
  
Version 4.8
+
Version 5.2
 
__NOTOC__
 
__NOTOC__
<!-- imported from file: 620.htm-->
+
<!-- imported from file: 642.htm-->

Revision as of 10:00, 7 March 2011



getSubQuestionText

Returns the text of the Subquestion with index in the question named label in the current questionnaire

Syntax

getSubQuestionText(questionLabel, gridNumber)

Arguments

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

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

Return type

string

Example

string text = getSubQuestionText("MultiGrid_Question", 2);

print(text);

Availability

Version 5.2