RMC_DeleteChart function.
Deletes a chart

Syntax
nResult (LONG) = RMC_DeleteChart(
ByVal nCtrlId (LONG)
)
Parameter
nCtrlId (LONG)
Unique ID of the chart control, which shall be deleted.
Return value
0
There is no special return value, therefore always 0.
Remarks
In case you called RMC_Draw() to show the chart on the screen you normally must not delete the chart. Because of it's nature as a control it will be destroyed when the dialog, which ownes the control, is destroyed (closed). If you did not show the chart calling RMC_Draw() but called instead RMC_Draw2Printer() or RMC_Draw2File() you must destroy the chart after saving or printing.