data-entry

Type

Keyword

Purpose

The data-entry keyword identifies the Data-entry form as the source of the specified value.

Syntax

data-entry FIELDNAME

Usage

A Data-entry form is a form used to collect data and processing specifications from a user at the beginning of a procedure. Values retrieved from a Data-entry form are used in a script exactly like any other value or expression. The keyword data-entry is used in place of a table name when specifying a value entered in a Data-entry form.

Example

 for MEMBERS with MEMBER ID = data-entry MEMBER ID ;

  modify records

  copy all from data-entry

   ADDRESS := data-entry NEW ADDRESS .

 end

This script might be used to post address changes into the MEMBERS table. It tells DataEase: 1) Find the MEMBERS record that has the same MEMBER ID as the MEMBER ID specified on the Data-entry form. 2) Modify the MEMBERS record by copying the value from the NEW ADDRESS field in the Data-entry form to the ADDRESS field in the MEMBERS table. After a record is modified, the Data-entry form is redisplayed so the operator can enter the next change of address.