NthField()

Read a substring that is delimited by a separator.

Syntax: string = NthField( source as string, separator as string, index as byte )

See also: CountFields()

Example

  dim a as string
  a = "This | is | an | example"
  print NthField(a,"|",3)  ' output: " an "