Please enable JavaScript to view this site.

 

str = StrInsert(sString,nPos,sSubString)

 

This macro function returns the string sString with the sub-string sSubString inserted before the position nPos.

 

The function StrInsert will generate an error message, if nPos is greater than the length of sString.

sResult = StrInsert('QuarkXPress 8', 13, '201') // QuarkXPress 2018
sResult = StrInsert('Quark', 13, '2018') // error
sResult = StrInsert('XPress', 1, 'Quark') // QuarkXPress

See also: StrCopy.

 


Topic 178855, last updated on 14-Oct-2026