From Xojo Documentation

Revision as of 19:16, 19 November 2009 by WikiSysop (talk) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!


Returns a field from a row of data. NthFieldB is identical to NthField except that it treats the source data as binary data. The first field is numbered 1.


result=NthFieldB(source, separator, fieldNumber) OR


Introduced 5.0

.NthFieldB(separator, fieldNumber)

Part Type Description
result String The field value desired.
source String The string that contains the desired field, with the field separated by the Separator character.
separator String The character that separates the columns of data.
fieldNumber Integer The column number of the desired field. The first field is numbered 1.
stringVariable String Any variable of type String.


The NthFieldB function returns the field value from the source that precedes the fieldNumber occurrence of the separator in the source.

If fieldNumber is out of bounds, an empty string is returned. NthFieldB is not case-sensitive.


This example returns "Smith"

Dim field As String


Using the second syntax:

Dim s,field As String
MsgBox field

See also the example that illustrates how to populate a PopupMenu control.

See Also

CountFieldsB, NthField, SplitB functions.