FIELD

Declares a list of database field names.

Syntax

FIELD <xField> [,<xFieldn...> [in <cDatabase>]

Arguments

<xField> A valid field name

<xFieldn> Additional field name

<cDatabase> An valid alias name

Returns

None

Description

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 listby 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.
Examples
      Func main
      FIELD iD
      FIELD Name
      USE TESTS NEW
      name:="Sales"
      Id:=5
      USE
      Return Nil
Tests
      See tests/testwarn.prg
Status

Ready

Compliance

This command works exactaly as CA-Clipper.

Platforms

All.

Files

None.

See Also