DeleteCategory
PowerScript function
Description
Deletes a category and the data values for that category from the
category axis of a graph.
Graph controls in windows and user objects. Does not apply to graphs
within DataWindow objects (because their data comes directly from the
DataWindow).
Syntax
|
1 |
controlname.DeleteCategory ( categoryvalue ) |
|
Argument |
Description |
|---|---|
|
controlname |
The graph in which you want to delete a |
|
categoryvalue |
A value that is the category you want to delete from |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, DeleteCategory returns null.
Examples
These statements delete the category whose name is entered in the
SingleLineEdit sle_delete from the graph gr_product_data:
|
1 2 3 |
string CategName CategName = sle_delete.Text gr_product_data.DeleteCategory(CategName) |
See also