Difference between revisions of "SetAverage"
(jrfconvert import) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{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);'' | ||
− | '' | + | ''bool b = getAverage();'' |
− | Version 5.4 | + | ''if (b) print("Average row is enabled and can be shown for table diagrams.");'' |
− | __NOTOC__ | + | |
− | <!-- imported from file: 4212.htm--> | + | ''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--> | ||
+ | |||
+ | [[Category:Average_functions]] |
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