Xbasic
FIELD.NAME_GET Function
Syntax
C Name_Get()
Description
The <FIELD>.NAME_GET() method returns the Field_Name of a field referenced by the <FIELD> object pointer.
Example
Show the field names in the current table.
dim fptr as P dim f_name as C dim num_fields as N dim tbl as P tbl = table.current() num_fields = tbl.fields_get() for i = 1 to num_fields fptr = tbl.field_get(i) f_name = fptr.name_get() trace.writeln("Fieldname " + ltrim( str(i) ) + ": " + f_name) next
See Also