Delete text DELETE

Removes Count characters from Position.

TagAfter two scans
CleanCode'ABCD'
DashCount2
DashPos3
RawCode'AB--CD'

How it's used

Use DELETE to remove characters, such as dashes in a code.

TagValue
RawCode'AB--CD'
CleanCode'ABCD'

2 characters from position 3 removed: ABCD.

Operands

OperandData typeRead or write
SourceSTRING or a numberReads
CountDINT or a numberReads
PositionDINT or a numberReads
DestSTRINGWrites

Common mistakes

  • Using zero as the first characterPositions start at 1. Deleting a range does not change the source unless it is also the destination.