Code archives/Miscellaneous/StrInsert Function

This code has been declared by its author to be Public Domain code.

Download source code

StrInsert Function by Perturbatio2005
Insert a string into another via a slice
Rem
bbdoc: insert inString into SourceStr at the specified index
End Rem
Function StrInsert(SourceStr:String Var, inString:String, Index:Int)
	SourceStr = SourceStr[..Index] + inString + SourceStr[Index..]
End Function

Comments

None.

Code Archives Forum