Enform Plus Reference Manual

Statements
Enform Plus Reference Manual422684-001
4-12
DELINK Statement
DELINK Statement
The DELINK statement allows you to clear a connecting relationship between dictionary
record descriptions. The syntax of the DELINK statement is:
record-name1 and record-name2
are the names of dictionary record descriptions.
field-name
is the name of a field common to both of the record descriptions.
qualified-field-name1 and qualified-field-name2
are the names of fields uniquely identified as components of record-name1 and
record-name2, respectively.
Both forms of the DELINK statement are equivalent. The field names must be specified
in the DELINK statement in the same order as the corresponding LINK statement. For
example, if the LINK statement is:
LINK parts TO odetail VIA partnum;
the corresponding DELINK statement can be:
DELINK parts.partnum TO odetail.partnum;
Enform Plus stores all links of record descriptions in the current Enform Plus internal
table. All links apply to all subsequent LIST or FIND statements of the current Enform
Plus session until you issue a DELINK, CLOSE, DICTIONARY statement, or
?DICTIONARY command. Because unnecessary links can produce undesirable results,
delete relationships that do not apply to the current query from the internal table. Use a
DELINK statement to clear a linking relationship between two record descriptions
without affecting other links.
If you want to clear all links, use a CLOSE statement, a DICTIONARY statement, or a
?DICTIONARY command. A CLOSE statement for a record description deletes all links
referencing that record description from the internal table. A DICTIONARY statement
or ?DICTIONARY command clears the entire internal table.
{ record-name1 [ TO [OPTIONAL] ] }
{ record-name2 VIA field-name }
DELINK { } , ... [;]
{ qualified-field-name1 [ TO [ OPTIONAL ] ] }
{ qualified-field-name2 }