Difference between revisions of "SetAverage"

From Catglobe Wiki
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Category:Average_functions]]
+
{{HelpFiles}}

 
  
=====setAverage=====
+
===== setAverage =====
  
Enables or disables the average row which can be shown for table diagrams.
+
Enables or disables the average row which can be shown for table diagrams.  
  
'''Syntax'''
+
'''Syntax'''  
  
setAverage(''enabled'')
+
setAverage(''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'''  
  
 
''setAverage(true);''
 
''setAverage(true);''
  
'''Availability'''
+
''bool b = getAverage();''
 +
 
 +
''if (b) print("Average row is enabled and can be shown for table diagrams.");''
 +
 
 +
''else print("Average row is disabled and cannot be shown for table diagrams.");''
 +
 
 +
''//Result: Average row is enabled and can be shown for table diagrams.''
 +
 
 +
''createFrequenceDiagram("Civil_status");''
 +
 
 +
'''Availability'''  
 +
 
 +
Version 5.4 __NOTOC__ <!-- imported from file: 4212.htm-->
  
Version 5.4
+
[[Category:Average_functions]]
__NOTOC__
 
<!-- imported from file: 4212.htm-->
 

Latest revision as of 10:48, 26 December 2011



setAverage

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

Syntax

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

setAverage(true);

bool b = getAverage();

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

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

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

createFrequenceDiagram("Civil_status");

Availability

Version 5.4