| RMC_CODelete function. | ||
| Delete a CustomObject. | ||
| Syntax | ||
| nResult (LONG) = RMC_CODelete( ByVal nCtrlId (LONG), ByVal nCOIndex (LONG) ) |
||
| Parameter | ||
| nCtrlId (LONG) | ||
| Unique ID of the chart control. | ||
| nCOIndex (LONG) | ||
| Index of the CustomObject, which shall be deleted. | ||
| Remarks | Normally there is no need to delete an existing CustomObject: if you close the window/dialog, in which the chart resides, which owns the custom objects, they get deleted together with the chart. If you delete the chart explicitly with RMC_DeleteChart, exisiting custom objects of this chart get also deleted. And if you want to replace an existing CustomObject with another one, simply call the appropriate RMC_CO...() function with the same index, which you used to create the old CustomObject. | |
| Return value | ||
| 0 | ||
| No error, function succeeded. | ||
| RMC_ERROR_CTRLID | ||
| Wrong control ID (0 or no chart with this control ID was found). | ||
| RMC_ERROR_CUSTOMINDEX | ||
| Parameter nCOIndex is not valid (either 0 or it exceeds the maximum number of CustomObjects (200). | ||