Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- RaSQL/B 6.1a for Clipper - <b>n_xfield()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_XFIELD()
Get Nth field name in current table

Syntax
N_XFIELD(<nField>)

RDD Option
FIELD()

Argument
<nField> is the field number in the record.

Returns
Name of the field in the specified position in the current table.
If  you specify an invalid number,  or if there is no table open in the 
current area, then the function returns a null string.

Remarks
The Clipper FIELD() function returns the "Clipperized" field name, i.e., 
trimmed to ten characters and all special characters changed to underscore 
(_).  Use N_XFIELD to get the name originally used when opening the file.

Example
N_XSELECT('patients')
? N_XFIELD(1)
ID
? N_XFIELD(2)
FIRST_NAME
? N_XFIELD(3)
MIDDLE_NAME


See Also: N_XFCOUNT() N_XNUM()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson