This is an old revision of the document!
string getValueText(string variable, int answercode)
The function getValueText()
returns the verbal response (label) to an answer code. For a selection question, this is the text of the corresponding selection option (also determined with getItemtext()
). For a scale, the label (verbal anchorage) of the corresponding point on the scale is returned.
If no label exists for the answercode (e.g. for the intermediate value in a scale where only the extremes are labeled), the answer code is returned.
Tip: The function value()
returns the verbal representation of a response, if you specified 'text
' as the second parameter.