Difference between revisions of "Tabulation setCountAnswer"
Cg huyphong (talk | contribs) |
|||
Line 1: | Line 1: | ||
− | + | {{HelpFiles}} | |
− | {{HelpFiles}} | ||
− | =====Tabulation_setCountAnswer===== | + | ===== 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. | + | 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''' | + | '''Syntax''' |
− | Tabulation_setCountAnswer(''enabled'') | + | Tabulation_setCountAnswer(''enabled'') |
− | '''Arguments''' | + | '''Arguments''' |
− | ''enabled: '' Is a boolean expression. If true the row will be included, if false the row will not be included | + | ''enabled: '' Is a boolean expression. If true the row will be included, if false the row will not be included |
− | '''Return type''' | + | '''Return type''' |
− | empty | + | empty |
− | '''Examples''' | + | '''Examples''' |
''Tabulation_setCountAnswer(true);'' | ''Tabulation_setCountAnswer(true);'' | ||
− | '' | + | ''bool b = Tabulation_getCountAnswer();'' |
− | Version 5.8.1 | + | ''if (b) print("Count answers row is enabled and can be shown for table diagrams.");'' |
− | __NOTOC__ | + | |
− | <!-- imported from file: 8133.htm--> | + | ''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 __NOTOC__ <!-- imported from file: 8133.htm--> | ||
+ | |||
+ | [[Category:Count_answers_functions]] |
Latest revision as of 11:22, 26 December 2011
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