nam()

Function group Execute on client Platform(s)
Field NO All

Syntax

nam(fieldname[,doitems=ktrue])

Description

Returns the name of a field as a string; fieldname must be a field name or variable, not a constant or expression. If doitems is true, nam() follows item references.

Example

Calculate lFieldName as nam(CCODE)
; returns the string 'CCODE'


Calculate lFieldName as nam(#SUBFLD)
; returns the name of the subtotal field