| RMC_WriteRMCFile function. | ||
| Creates an RMC-string or RMC-file of an existing chart. | ||
| Syntax | ||
| nResult (LONG) = RMC_WriteRMCFile( ByVal nCtrlId (LONG), ByRef sRMCFile (ASCIIZ) ) | ||
| Parameter | ||
| nCtrlId (LONG) | ||
| Unique ID of the chart control. | ||
| sRMCFile (ASCIIZ) | ||
| If empty, the content for the file will be written into the string. If sRMCFile is a valid file name, the file will be created. If the file name has no extension, "RMC" will be append as extension. | ||
| 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_FILECREATE | ||
| Error while creating the file. | Remarks | |
| Please see Concept of the RMC content string for a brief description of the concept of *.rmc-files. | ||
| Example | ||
'create a chart from a *.rmc-file: i = RMC_CreateChartFromFile(nParentH,%ID_RMC,10,10,0,"mychart.rmc") i = RMC_Draw(%ID_RMC1) 'draw the chart . . ' later, alter a property of the chart ... i = RMC_SetCaptionText(%ID_RMC1,1,"New caption") i = RMC_WriteRMCFile(%ID_RMC,"mychart.rmc") ' ... and write the altered chart back to the RMC-file | ||