string GetFieldname(int n)
returns the name of the (zero based) nth field buffer named in the list of fieldnames.
More:
GetNumberOfFieldnames