User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

FIELD

Declares a list of database field names.
Syntax
FIELD <xField> [, <xFieldn...> [IN <cDatabase>]
Argument(s)
<xField> A valid field name
<xFieldn> Additional field name
<cDatabase> An valid alias name
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 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.
Example(s)
PROCEDURE Main()
   FIELD Id
   FIELD Name
   USE tests NEW
   Name := "Sales"
   Id := 5
   USE
   RETURN
Status
Ready
Compliance
This is CA-Cl*pper v5.2 compliant
Platform(s)
This is available on all platforms
File(s)
None.
See also

MEMVAR, PRIVATE, PUBLIC, STATIC