Difference between revisions of "SetShowMode"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
 
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:HelpBooks]]
+
{{HelpFiles}}

 
  
=====setShowMode=====
+
===== setShowMode =====
  
Sets the show mode which must be used when creating diagrams
+
Sets the show mode which must be used when creating diagrams  
  
'''Syntax'''
+
'''Syntax'''  
  
setShowMode(''showMode'')
+
setShowMode(''showMode'')  
  
'''Arguments'''
+
'''Arguments'''  
  
''showMode:'' Is a numeric (non-decimal) expression. The show mode must be one of the constants specified below
+
''showMode:'' Is a numeric (non-decimal) expression. The show mode must be one of the constants specified below  
  
* Diagram_ShowModeType_Percentage
+
*1: Diagram_ShowModeType_Percentage  
* Diagram_ShowModeType_Absolute
+
*2: Diagram_ShowModeType_Absolute  
* Diagram_ShowModeType_Both
+
*3: Diagram_ShowModeType_Both
  
'''Return type'''
+
'''Return type'''  
  
empty
+
empty  
  
'''Examples'''
+
'''Examples'''  
  
''setShowMode(''Diagram_ShowModeType_Absolute'');''
+
''setShowMode(Diagram_ShowModeType_Absolute); ''  
  
'''Availability'''
+
''number n = getShowMode();''  
  
Version 5.4
+
''if (n == 1) print("Show mode is Percentage.");''
__NOTOC__
+
 
<!-- imported from file: 4191.htm-->
+
''else if (n == 2) print("Show mode is Absolute.");''
 +
 
 +
''else print("Show mode is both Percentage &amp; Absolute.");''
 +
 
 +
''//Result: Show mode is Absolute.''
 +
 
 +
''createCrossDiagram({"S1"},{"Q11"});''
 +
 
 +
'''Availability'''
 +
 
 +
Version 5.4 __NOTOC__ <!-- imported from file: 4191.htm-->  
 +
 
 +
[[Category:Show_mode_functions]]

Latest revision as of 11:11, 27 December 2011



setShowMode

Sets the show mode which must be used when creating diagrams

Syntax

setShowMode(showMode)

Arguments

showMode: Is a numeric (non-decimal) expression. The show mode must be one of the constants specified below

  • 1: Diagram_ShowModeType_Percentage
  • 2: Diagram_ShowModeType_Absolute
  • 3: Diagram_ShowModeType_Both

Return type

empty

Examples

setShowMode(Diagram_ShowModeType_Absolute);

number n = getShowMode();

if (n == 1) print("Show mode is Percentage.");

else if (n == 2) print("Show mode is Absolute.");

else print("Show mode is both Percentage & Absolute.");

//Result: Show mode is Absolute.

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

Availability

Version 5.4