Difference between revisions of "SetVariance"

From Catglobe Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
{{HelpFiles}}  
 
{{HelpFiles}}  
  
===== setVariance =====
+
===== setVariance =====
  
 
Enables or disables the variance row which can be shown for table diagrams.  
 
Enables or disables the variance row which can be shown for table diagrams.  
Line 21: Line 21:
 
''setVariance(true);''  
 
''setVariance(true);''  
  
''bool b = getVariance();''
+
''bool b = getVariance();''  
  
''if (b) print("Variance row is enabled and can be shown for table diagrams.");''
+
''if (b) print("Variance row is enabled and can be shown for table diagrams.");''  
  
''else print("Variance row is disabled and cannot be shown for table diagrams.");''
+
''else print("Variance row is disabled and cannot be shown for table diagrams.");''  
  
''//Result: Variance row is enabled and can be shown for table diagrams.''
+
''//Result: Variance row is enabled and can be shown for table diagrams.''
 +
 
 +
''createCrossDiagram({"Q1"},{"Q11"});''
  
 
'''Availability'''  
 
'''Availability'''  

Latest revision as of 11:03, 27 December 2011



setVariance

Enables or disables the variance row which can be shown for table diagrams.

Syntax

setVariance(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

setVariance(true);

bool b = getVariance();

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

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

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

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

Availability

Version 5.4