SetDirection: Difference between revisions
From Catglobe Wiki
More actions
jrfconvert import  |
No edit summary  |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{HelpFiles}} | |||
 | |||
=====setDirection===== | ===== setDirection ===== | ||
Sets the direction of the total calculations which must be used when creating diagrams. | Sets the direction of the total calculations which must be used when creating diagrams. Â | ||
'''Syntax''' | '''Syntax''' Â | ||
setDirection(''direction'') | setDirection(''direction'') Â | ||
'''Arguments''' | '''Arguments''' Â | ||
''direction:'' Is a numeric (non-decimal) expression. The direction must be one of the constants specified below | ''direction:'' Is a numeric (non-decimal) expression. The direction must be one of the constants specified below  | ||
* Diagram_DirectionType_Vertical | *1: Diagram_DirectionType_Vertical  | ||
* Diagram_DirectionType_Horizontal | *2: Diagram_DirectionType_Horizontal | ||
'''Return type''' | '''Return type''' Â | ||
empty | empty  | ||
'''Examples''' | '''Examples''' Â | ||
''setDirection( | ''setDirection(Diagram_DirectionType_Horizontal); '' | ||
'' | ''number n = getDirection();'' | ||
Version 5.4 | ''if (n == 1) print("Chart Direction is Vertical and can be shown for table diagrams.");'' | ||
__NOTOC__ | Â | ||
<!-- imported from file: 4199.htm--> | ''else print("Chart Direction is Horizontal and can be shown for table diagrams.");'' | ||
 | |||
''//Result: Chart Direction is Horizontal and can be shown for table diagrams.'' | |||
 | |||
'''Availability''' | |||
 | |||
Version 5.4 __NOTOC__ <!-- imported from file: 4199.htm--> Â | |||
 | |||
[[Category:Direction_functions]] | |||
Latest revision as of 10:36, 26 December 2011

setDirection
Sets the direction of the total calculations which must be used when creating diagrams.
Syntax
setDirection(direction)
Arguments
direction: Is a numeric (non-decimal) expression. The direction must be one of the constants specified below
- 1: Diagram_DirectionType_Vertical
- 2: Diagram_DirectionType_Horizontal
Return type
empty
Examples
setDirection(Diagram_DirectionType_Horizontal);
number n = getDirection();
if (n == 1) print("Chart Direction is Vertical and can be shown for table diagrams.");
else print("Chart Direction is Horizontal and can be shown for table diagrams.");
//Result: Chart Direction is Horizontal and can be shown for table diagrams.
Availability
Version 5.4