Difference between revisions of "SetShowResultViewer"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
[[Category:Result display method functions]]
+
{{HelpFiles}}  
{{HelpFiles}}
 
  
=====setShowResultViewer=====
+
===== setShowResultViewer =====
  
Enables or disables whether the diagrams created will be shown in the Result viewer-dialog when the script has been executed successfully.
+
Enables or disables whether the diagrams created will be shown in the Result viewer-dialog when the script has been executed successfully.  
  
'''Syntax'''
+
'''Syntax'''  
  
setShowResultViewer(''enabled'')
+
setShowResultViewer(''enabled'')  
  
'''Arguments'''
+
'''Arguments'''  
  
''enabled:'' Is a boolean expression. If true the Result viewer-dialog will be opened when the script is executed successfully.
+
''enabled:'' Is a boolean expression. If true the Result viewer-dialog will be opened when the script is executed successfully.  
  
'''Return type'''
+
'''Return type'''  
  
empty
+
empty  
  
'''Examples'''
+
'''Examples'''  
  
''setShowResultViewer(true);''
+
''setShowResultViewer(false);''
  
'''Availability'''
+
''bool b = getShowResultViewer();''
  
Version 5.4
+
''if (b) print("Current state of the show result viewer is Enabled.");''
__NOTOC__
+
 
<!-- imported from file: 4218.htm-->
+
''else print("Current state of the show result viewer is Disabled.");''
 +
 
 +
''//Result: Current state of the show result viewer is Disabled.''
 +
 
 +
'''Availability'''
 +
 
 +
Version 5.4 __NOTOC__ <!-- imported from file: 4218.htm-->  
 +
 
 +
[[Category:Result_display_method_functions]]

Revision as of 06:51, 27 December 2011



setShowResultViewer

Enables or disables whether the diagrams created will be shown in the Result viewer-dialog when the script has been executed successfully.

Syntax

setShowResultViewer(enabled)

Arguments

enabled: Is a boolean expression. If true the Result viewer-dialog will be opened when the script is executed successfully.

Return type

empty

Examples

setShowResultViewer(false);

bool b = getShowResultViewer();

if (b) print("Current state of the show result viewer is Enabled.");

else print("Current state of the show result viewer is Disabled.");

//Result: Current state of the show result viewer is Disabled.

Availability

Version 5.4