SRGraph::SubString

intSRGraph::SubString(LPCTSTRtext, CString &section, DWORD *index, double *number)

Reads a string from a tab delimited text input and returns data and analysis of the type of data via the pointers supplied

Defined in: SRGraph.cpp

Return Value

The return codes are ...
ALL&#09A text string has been read.
EMPTY&#09A tab character was found without preceeding text.
SUBEND&#09A carriage return or carriage return/linefeed pair was read.
END&#09The end of text ('\\0') mark was found.
NUMERIC&#09A number was successfully converted from the text string.

Parameters

text

Pointer to the text being scanned

section

Reference to a CString object which will store the actual text found (if any)

index

Pointer to the offset index into the data referenced by parameter 1
NOTE: Do not alter this index except to zero it at the beginning of a parsing run.

number

Pointer to a double used to store the number resulting from scanning the text