Xbasic

FIELD.FULLNAME_GET Function

Syntax

Field_Name as C = Fullname_Get()

Description

Gets the full field name (Table and Field).

Discussion

The .FULLNAME_GET() method returns the fully qualified (i.e., prefixed with an alias) Field_Name of a field referenced by using the object pointer. For example, " customer->lastname ". Contrast this with the <FIELD>.NAME_GET() method that returns just the field name without an alias prefix.

Example 

Show the field names in the current table.

dim tbl as P
dim f_handle as P
tbl = table.current()
no_fields = tbl.fields_get()
for i = 1 to no_fields
    f_handle = tbl.field_get(i)
    f_name = f_handle.fullname_get()
    trace.writeln("Fieldname " + ltrim( str(i) ) + ": " + f_name)
next

See Also