Next revision | Previous revisionNext revisionBoth sides next revision |
en:create:functions:getvaluetext [18.12.2014 23:34] – created alexander.ritter | en:create:functions:getvaluetext [18.12.2014 23:42] – alexander.ritter |
---|
====== getValueText() ====== | ====== getValueText() ====== |
| |
''string **getValueText**(string //Variable//, int //Antwortcode//)'' | ''string **getValueText**(string //variable//, int //answercode//)'' |
| |
Die Funktion ''getValueText()'' liefert die verbale Antwort (Beschriftung) zu einem Antwortcode. Bei einer Auswahl-Frage ist dies der Text der entsprechenden Auswahloption (auch zu ermitteln via ''[[:de:create:functions:getitemtext|getItemtext()]]''). Bei der Skala wird die Beschriftung (verbale Verankerung) des entsprechenden Skalenpunkts zurückgegeben. | 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 ''[[:en:create:functions:getitemtext|getItemtext()]]''). For a scale, the label (verbal anchor) of the corresponding point on the scale is returned. |
| |
* //Variable//\\ Kennung der Variable, zu welcher die Beschriftung ermittelt werden soll. | * //variable//\\ ID of the variable which the label shall be generated for. |
* //Antwortcode//\\ (Numerischer) Antwortcode, dessen verbales Pendant ermittelt werden soll. | * //answercode//\\ (Numeric) answer code, whose verbal equivalent shall be generated. |
| |
Falls für den //Antwortcode// keine Beschriftung vorliegt (z.B. für den Zwischenwert in einer Skala, bei welcher nur die Extrema beschriftet sind), wird der Antwortcode zurückgegeben. | 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. |
| |
**Tipp:** Die Funktion ''[[:de:create:functions:value|value()]]'' liefert die verbale Repräsentation einer Antwort, wenn Sie als zweiten Parameter '''text''' angeben. | **Tip:** The function ''[[:en:create:functions:value|value()]]'' returns the verbal representation of an answer, if you specified '''text''' as the second parameter. |