DeleteCategory PowerScript function
Description
Deletes a category and the data values for that category from
the category axis of a graph.
Context
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 |
<span>controlname</span>.<span>DeleteCategory</span> ( <span>categoryvalue</span> ) |
|
Argument |
Description |
|---|---|
|
controlname |
The graph in which you want to delete |
|
categoryvalue |
A value that is the category you want |
Return Values
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 |
string CategName |
|
1 |
CategName = sle_delete.Text |
|
1 |
gr_product_data.<span>DeleteCategory</span>(CategName) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest