InsertString()

Syntax

Result$ = InsertString(String$, StringToInsert$, Position)
Description
Inserts 'StringToInsert$' into 'String$' at the specified 'Position'.

Parameters

String$ The string to use.
StringToInsert$ The string to insert.
Position The position in the string to insert the new string. The first position index is 1.

Return value

A new string with the inserted string at the specified position.

Example

  Debug InsertString("Hello !", "World", 7)  ; Will display "Hello World!"
  Debug InsertString("Hello !", "World", 1)  ; Will display "WorldHello !"

See Also

RemoveString()

Supported OS

All

<- Hex() - String Index - LCase() ->