NthField()
Read a substring that is delimited by a separator.
Syntax: string = NthField( source as string, separator as string, index as byte )
- source: String to inspect.
- separator: Delimiting String.
- index: Element index to read, starting from left with 1.
See also: CountFields()
Example
dim a as string a = "This | is | an | example" print NthField(a,"|",3) ' output: " an "