| RMC_GetData function. | ||
| Get a specific data value from a series | ||
| Syntax | ||
| nResult (LONG) = RMC_GetData( ByVal nCtrlId (LONG), ByVal nRegion (LONG), ByVal nSeriesIndex (LONG), ByVal nDataIndex (LONG), ByRef nData (DOUBLE), Optional ByVal nYData (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. | ||
| nDataIndex (LONG) | ||
| The index of the data within the series, starting with 1. | ||
| nData (DOUBLE) | ||
| Holds the data value after succesfull function call. | ||
| nYData (DOUBLE) | ||
| Only in case of XY series: If you want to get the data value of the Y-axis, pass TRUE. If this parameter is FALSE (default), the value is get from X-axis. | ||
| 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 the data value of the first bar: nError = RMC_GetData(%ID_RMC1,1,1,1,nData) ' Note: first data index is always one! | ||