SetShowMode

From Catglobe Wiki
Revision as of 08:26, 27 December 2011 by Cg van (talk | contribs)
Jump to: navigation, search



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

  • Diagram_ShowModeType_Percentage
  • Diagram_ShowModeType_Absolute
  • 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.

Availability

Version 5.4