| RMC_GetDataCount function. | ||
| Get the number of data values in a series | ||
| Syntax | ||
| nResult (LONG) = RMC_GetDataCount( ByVal nCtrlId (LONG), ByVal nRegion (LONG), ByVal nSeriesIndex (LONG), ByRef nDataCount (LONG) ) | ||
| Parameter | ||
| nCtrlId (LONG) | ||
| Unique ID of the chart control, to which the series belongs. | ||
| nRegion (LONG) | ||
| Index of the region, to which the series belongs. | ||
| nSeriesIndex (LONG) | ||
| Index of the series, to which the data belongs. | ||
| nDataCount (LONG) | ||
| Holds the number of data values after succesfull function call. | ||
| 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_WRONGREGION | ||
| The region index is inexistent in the chart control. | ||
| RMC_ERROR_SERIESINDEX | ||
| The series index is not valid (No series with this index exists in this region). | ||
| Example | ||
nError = RMC_AddBarSeries(%ID_RMC,1,aData(0),10) ' Add a bar series ... ... ... ' later, retrieve all data values of the series: nError = RMC_GetDataCount(%ID_RMC1,1,1,nDataCount) ' Get the number of data values For i = 1 To nDataCount nError = RMC_GetData(%ID_RMC1,1,1,i,nData) ' Read all data values Next | ||