Difference between revisions of "GetShowMode"

From Catglobe Wiki
Jump to: navigation, search
 
Line 1: Line 1:
[[Category:Show mode functions]]
+
{{HelpFiles}}  
{{HelpFiles}}
 
  
=====getShowMode=====
+
===== getShowMode =====
  
Gets the show mode which is used when creating diagrams
+
Gets the show mode which is used when creating diagrams  
  
'''Syntax'''
+
'''Syntax'''  
  
getShowMode()
+
getShowMode()  
  
'''Arguments'''
+
'''Arguments'''  
  
none
+
none  
  
'''Return type'''
+
'''Return type'''  
  
number returned as constant
+
number returned as constant  
  
* Diagram_ShowModeType_Percentage  
+
*1: Diagram_ShowModeType_Percentage  
* Diagram_ShowModeType_Absolute  
+
*2: Diagram_ShowModeType_Absolute  
* Diagram_ShowModeType_Both
+
*3: Diagram_ShowModeType_Both
  
'''Examples'''
+
'''Examples'''  
  
''getShowMode();''
+
''number n = getShowMode();''
  
'''Availability'''
+
''if (n == 1) print("Show mode is Percentage.");''
  
Version 5.4
+
''else if (n == 2) print("Show mode is Absolute.");''
__NOTOC__
+
 
<!-- imported from file: 4198.htm-->
+
''else print("Show mode is both Percentage & Absolute.");''
 +
 
 +
''//Result: Show mode is both Percentage & Absolute.''
 +
 
 +
'''Availability'''
 +
 
 +
Version 5.4 __NOTOC__ <!-- imported from file: 4198.htm-->  
 +
 
 +
[[Category:Show_mode_functions]]

Latest revision as of 08:24, 27 December 2011



getShowMode

Gets the show mode which is used when creating diagrams

Syntax

getShowMode()

Arguments

none

Return type

number returned as constant

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

Examples

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 both Percentage & Absolute.

Availability

Version 5.4