OpenersNotesSection(Spacer1)Details

This message is generated when the third argument in (RefLink[StringReplacePart, paclet:ref/StringReplacePart]) is not an integer, a pair of integers, or a list of pairs of integers.

(RefLink[Off, paclet:ref/Off])[message] switches off the message; (RefLink[On, paclet:ref/On])[message] switches it on. For example: (RefLink[Off, paclet:ref/Off])[StringReplacePart::spos].

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

An error occurs because the third argument is not a pair of integers:

StringReplacePart["123456","xyz",{2}]

This shows a valid position specification in (RefLink[StringReplacePart, paclet:ref/StringReplacePart]):

StringReplacePart["123456","xyz",{2,2}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[StringReplacePart, paclet:ref/StringReplacePart])}})}})