![]() ![]() |
Reference Type: Controlled Subscription, Category: Name Standardization, ICR#: 3066
The DELCOMP^XLFNAME2 API deletes an entry in the NAME COMPONENTS (#20) file, and optionally,
the value of the pointer in the source file that points to the name components
entry.
NOTE: The DELCOMP^XLFNAME2 API is designed to be used in the KILL logic for
the MUMPS cross-reference mentioned previously in the
UPDCOMP^XLFNAME2(): Update Name Components Entry API.
DELCOMP^XLFNAME2(file,[.]record,field[,ptrfield])
file: |
(required) The number of the file or subfile (the "source file") that contains the name. |
[.]record: |
(required) The IENS or the Internal Entry Number array (that looks like the DA array) of the record in the source file that contains the name. |
field: |
(required) The number of the field in the source file that contains the name. |
ptrfield: |
(optional) The number of the POINTER field in the source file that points to the NAME COMPONENTS (#20) file. Only if this parameter is passed is the value of this POINTER field deleted. |
none. |
Deletes record. |
Suppose that you have a NAME COMPONENTS (#20) file entry that contains the components of a name stored in File #1000, Record #132, Field #.01. The POINTER Field #1.1 of that File #1000 is a pointer to the NAME COMPONENTS (#20) file. To delete the entry in the NAME COMPONENTS (#20) file, and the value of the POINTER field, you can do the following:
>D DELCOMP^XLFNAME(1000,132,.01,1.1) |