What is it you are trying to achieve? There are a couple of ways of doing what you want. There are VSTs (Virtual System Tables) that hold all that info, there is also the data dictionary. It all depends what you want to do.
Have a look at the _file and _field tables. _file._file-name is the table name, _field._field-name is the name of the field. There's other info available on these tables too. You can see them in the Data Dictionary if you go to View>Show hidden tables.
In a character editor, go to Tools | Data Dictionary. Then go to Database | Reports ->. If you just want a list of the fields in a table, select Quick Field from the list of reports. If you want more detailed information on the schema definition of that table, select Detailed Table and pick your table from the list.
As Cringer indicated, you can also approach this programmatically if you like.
Code:
define variable tbl as character no-undo.
assign tbl = "customer".
display tbl label "Table".
find _File no-lock where _File._File-Name = tbl no-error.
for each _Field no-lock where _Field._File-Recid = recid(_File):
display _Field._Field-Name no-error.
end.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.