Using the CSV_Include Project > CSV_Include Reference > CSV_Include Functions > CSV_String_GetField

CSV_String_GetField

Gets a field value (text) from a string, where the string consists of a number of fields separated by a field separation character.

Syntax

CSV_String_GetField(sText,iField,sFieldSeparator)

#sText:

String containing fields.

#iField:

Index of field value to return (starting at 1).

#SFieldSeparator:

Field separation character.

Return Value

Field value as string.

Example

sText = "ab?cde?fghi?j";
sField = CSV_String_GetField(sText,3,"?");
In this case sField = "fghi"