Declares a list of database field names.
FIELD <xField> [,<xFieldn...> [in <cDatabase>]
<xField> A valid field name
<xFieldn> Additional field name
<cDatabase> An valid alias name
This command declares the names of fields <xField> (and <xFieldn> and following) with an optional alias identifier as <cDatabase> for each. This command allow Harbour to resolve any reference to a field specified in the field list by viewing it as a field when it is not referenced by an alias. If a field is not listed in this list and it is not explicity tagged with an alias indentifier, it may be viewed as a memory variable, which may cause run-time errors. This command has no effect on memory variables or on field reference buried within a macro expression.
PROCEDURE Main() FIELD Id FIELD Name USE tests NEW Name := "Sales" Id := 5 USE RETURN
MEMVAR, PRIVATE, PUBLIC, STATIC