2 Instruction Descriptions
2-532
NJ-series Instructions Reference Manual (W502)
The following example is for when In is 'ABCDEF', L is UINT#4, and P is UINT#2. The value of variable
abc will be 'AF'.
• If L is 0, an error will not occur and all of the characters in In are inserted to Out.
• Multi-byte characters are counted as one character each.
• An error occurs in the following cases. ENO will be FALSE, and Out will not change.
• In does not end in a NULL character.
• In results in a character code error.
• In does not have enough characters for the number of characters specified by L from the position
specified by P.
• The value of P is 0.
• The execution result exceeds the size of Out.
Precautions for Correct Use
abc:=DELETE(‘ABCDEF’, UINT#4, UINT#2);
LD ST
abc
‘ABCDEF’
UINT#4
UINT#2
DELETE
EN ENO
In
L
P
‘AF’
Out=abc
‘ABCDEF’
In
Deleted