### Insert String

Example of inserting a string in a string.
'Insert a string at position. Min position > 0, Max position = string length + 1
'Example: Dim s As String = "Hello World", Log(InsertStr(s, "My ", 7))
`Sub InsertStr(s As String, sinsert As String, pos As Int) As String
Dim Result As String
Try
Result = s.SubString2(0,pos - 1) & sinsert & s.SubString2(pos - 1, s.Length)
Catch
Log(LastException)
End Try
Return Result
End Sub`

Changed: , Category: Strings, File: T6C255M1853.htm, ID: 1853