Tabulation setCountAnswer

From Catglobe Wiki
Jump to: navigation, search



Tabulation_setCountAnswer

Enables or disables the count total answers row in table diagrams. This row is a statistical row shown at the bottom of the table. The value of the row tells us how many answers were given to the question. This may be the same as the total number of respondents, but given that the question type is multi, it may also be that it was more than this, since each respondent then can give more than one answer to one question.

Syntax

Tabulation_setCountAnswer(enabled)

Arguments

enabled: Is a boolean expression. If true the row will be included, if false the row will not be included

Return type

empty

Examples

Tabulation_setCountAnswer(true);

bool b = Tabulation_getCountAnswer();

if (b) print("Count answers row is enabled and can be shown for table diagrams.");

else print("Count answers row is disabled and cannot be shown for table diagrams.");

//Result: Count answers row is enabled and can be shown for table diagrams.

createFrequenceDiagram("Civil_status");

Availability

Version 5.8.1