Difference between revisions of "GetAnswerOptionText"

From Catglobe Wiki
Jump to: navigation, search
 
Line 4: Line 4:
 
====getAnswerOptionText====
 
====getAnswerOptionText====
  
Returns string of answer option text. This function run in question context
+
Returns string of answer option text in user’s language or default language. This function run in question context
  
 
'''Syntax'''
 
'''Syntax'''

Latest revision as of 05:29, 23 August 2019


getAnswerOptionText

Returns string of answer option text in user’s language or default language. This function run in question context

Syntax

getAnswerOptionText(questionLabel, answerOptionValue)

or:

getAnswerOptionText(questionPath, answerOptionValue)

Arguments

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

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

answerOptionValue: a numeric expression. It is the value of the answer option

Return type

string

Example

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

Availability

Version 5.2