Insert Procedure

Applies to TestComplete 14.71, last modified on April 22, 2021

The Insert procedure inserts a substring into a string.

Declaration

Insert(SStrIndex) Parameters
S [in] Required String
Str [in, out] Required String
Index [in] Required Integer
Result     none  

Description

Inserts the S substring into the Str string starting from the Index position.

Parameters

The procedure has the following parameters:

S

Specifies the string to be inserted. If S is empty, the current procedure does nothing.

Str

Specifies the string to which the S substring is inserted.

Index

Specifies the position of the insertion point, from 1 (if Index is less than 1, it is set to 1). If Index is 1, the S substring will be inserted at the beginning of the Str string. If Index is greater than the length of the Str string, the substring is appended to the end of the string.

See Also

DelphiScript Routines
Copy
Delete
Length
Pos

Highlight search results