This translation is older than the original page and might be outdated. See what has changed.
Translations of this page:
 

This is an old revision of the document!


getValueText()

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 anchor) of the corresponding point on the scale is returned.

  • variable
    ID of the variable which the label shall be generated for.
  • answercode
    (Numeric) answer code, whose verbal equivalent shall be generated.

If no label exists for the answer code (e.g. for the intermediate value in a scale in which only the extremes are labeled), the answer code is returned.

Tip: The function value() returns the verbal representation of an answer, if you specified 'text' as the second parameter.

en/create/functions/getvaluetext.1418942525.txt.gz · Last modified: 18.12.2014 23:42 by alexander.ritter
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki