InsertString()

语法

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

参数

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.

返回值

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

示例

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

参阅

RemoveString()

已支持操作系统

所有

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