Difference between revisions of "Axis removeOption"
(jrfconvert import) |
|||
Line 1: | Line 1: | ||
− | [[Category: | + | [[Category:Axis set modifying CGScript functions]] |
| | ||
Revision as of 04:34, 29 March 2011
Axis_removeOption
Removes an axis option with the option index passed as argument to the method. If the option index is smaller than 0 or larger than the number of axis options minus one then return false and nothing is removed. Else it will remove the axis option positioned at the option index passed as argument to the method and return true.
When using string name it is slightly different. Then returns true if anything was removed and false otherwise.
Syntax
Axis_removeOption(axis, optionIndex)
or
Axis_removeOption(axis, name)
Arguments
axis: Is an axis array, created by Axis_new function.
optionIndex: Is a number expression. It is the index of the axis option in the option list, returned by Axis_addOption function.
name: Is a string expression. It is the name of the axis option.
Return type
bool
Examples
bool b = Axis_removeOption(axis, 0);
Availability
Version 5.5