RMC_SetLAXLabelsFile function.
Set the name and lines/fields of a file like *.csv, from where the labels of a label axis will be read.

Syntax
nResult& = RMC_SetLAXLabelsFile(
ByVal nCtrlId (LONG),
ByVal nRegion (LONG),
ByRef sFilename (ASCIIZ),
Optional ByRef sLines (ASCIIZ),
Optional ByRef sFields (ASCIIZ),
Optional ByRef sFieldDelimiter (ASCIIZ)
)
Parameter
nCtrlId (LONG)
Unique ID of the chart control, to which the label axis belongs.
nRegion (LONG)
Index of the region, to which the label axis belongs.
sFileName (ASCIIZ)
Name of the file (including path and extension), which holds the labels.
sLines (ASCIIZ)
Defines the lines, which shall be read. Each line must be separated by either $CRLF or $LF. The first line has index 1. There are several possible cases:
  • Empty string ("") or ("0"): All lines will be read, startinfg with the first line, ending with the last line.
  • "-1": All lines will be read, starting with the last line, ending with the first line.
  • String with a positive number (e.g. "20"): The corresponding number of lines will be read, starting with the first line
  • String with a negative number (e.g. "-10"): The corresponding number of lines will be read, starting with the last line
  • String with two positive numbers, separated by a comma (e.g. "10,50"). Line number [first number] to line number [second number] will be read. This is also valid in reverse order (e.g. "20,10"): in this case line 20 to line 10 will be read.
sFields (ASCIIZ)
Defines the fields of the lines, which shall be read. Each field must be separated by a certain delimiter. The first field has index 1. There are three possible cases:
  • Empty string ("") or ("0"): All fields of a line will be read.
  • String with one ore more positive number(s), seperated by a comma (e.g. "2,5"): The corresponding field(s) will be read.
  • String with two positive number(s), seperated by a dash (e.g. "2-5"): Field [first number] to field [second number] will be read. This is also valid in reverse order, e.g. "5-2".
sFieldDelimiter (ASCIIZ)
Defines the delimiter, which separates the fields within a line. If omitted, the list separator, which is found in the system settings for the local user, is assumed. If no entry is found, a comma "," is assumed.
Return value
positiv number
No error, number of successfully read data values.
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_ALLOC
Error while allocating memory for the data.
RMC_ERROR_FILEFOUND
File was not found or is empty.
RMC_ERROR_READLINES
No lines to read could be identified.
Remarks
Be sure that the file is in a proper condition: e.g. no empty lines, same number of fields in every line, a unique field separator, which is not part of the content of a field and so on, otherwise you will get unpredictable results.
Example

i = RMC_AddLabelAxis(%ID_RMC,1,"",0,15) ' Add a label axis with no labels and 15 ticks (columns) on it
i = RMC_SetLAXLabelsFile(%ID_RMC,1,"labels.csv","15","1") ' Set the label file, line 1 to 15, field 1