Difference between revisions of "Tabulation setShowTotalRespondents"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{HelpFiles}}  
 
{{HelpFiles}}  
  
===== Tabulation_setShowTotalRespondent =====
+
===== Tabulation_setShowTotalRespondent =====
  
 
Enables or disables the show total respondents row in table diagrams. This row is a statistical row shown at the bottom of the table.  
 
Enables or disables the show total respondents row in table diagrams. This row is a statistical row shown at the bottom of the table.  
Line 19: Line 19:
 
'''Examples'''  
 
'''Examples'''  
  
''Tabulation_setShowTotalRespondent(true);''
+
''Tabulation_setShowTotalRespondent(true);''  
  
''bool b = Tabulation_getShowTotalRespondent();''
+
''bool b = Tabulation_getShowTotalRespondent();''  
  
''if (b) print("Total respondents row is enabled and can be shown for table diagrams.");''
+
''if (b) print("Total respondents row is enabled and can be shown for table diagrams.");''  
  
''else print("Total respondents row is disabled and cannot be shown for table diagrams.");''
+
''else print("Total respondents row is disabled and cannot be shown for table diagrams.");''  
  
''//Result: Total respondents row is enabled and can be shown for table diagrams.''
+
''//Result: Total respondents row is enabled and can be shown for table diagrams.''
 +
 
 +
''createCrossDiagram({"Q1"},{"Q11"});''
  
 
'''Availability'''  
 
'''Availability'''  

Revision as of 12:07, 27 December 2011



Tabulation_setShowTotalRespondent

Enables or disables the show total respondents row in table diagrams. This row is a statistical row shown at the bottom of the table.

Syntax

Tabulation_setShowTotalRespondent(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_setShowTotalRespondent(true);

bool b = Tabulation_getShowTotalRespondent();

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

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

//Result: Total respondents row is enabled and can be shown for table diagrams.

createCrossDiagram({"Q1"},{"Q11"});

Availability

Version 5.8.1