Difference between revisions of "SetAverage"
Cg huyphong (talk | contribs) |
|||
Line 1: | Line 1: | ||
− | + | {{HelpFiles}} | |
− | {{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--> | ||
− | + | [[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