DatStat Illume 4.5 SDK Class Reference

HookContext.GetResponseLabel Method 

Returns the scale label for the value of a survey variable.

public string GetResponseLabel(
   String variableName
);

Parameters

variableName
The friendly name of the survey variable.

Return Value

The scale label corresponding to the value of a survey variable.

Remarks

More often than not, survey responses are simply codes that map to a label. The list of these codes/labels is called a scale. For example in the scale 0=Male, 1=Female, the codes are 0 and 1 and the labels are ‘Male’ and ‘Female’.

Whereas the GetResponse method will return the code of the user’s response, this method will return the label of that code as a string. In the case that the survey variable represents a question which does not have a scale, this method will return the string representation of the users response (e.g. if the users response was 6, this method will return the String “6”. If the user has not responded, this method will return an empty string, “”.

See Also

HookContext Class | DatStat.Collector Namespace