strins( base, location, insert )


Parameters

  Type Description
base string starting string
location numeric offset to insert
insert string string to insert

_result

Set to a new string value.

Descriptions

Sets _result to a new string value that is created by inserting the insert string into the base string at the offset specified by location. The insert parameter is zero based. To insert before the first character use a value off 0. To insert after the final character use a value that is equal to the string's length. A string's length can be found by calling the strlen command.

In the example code below, the print command adds "This is a great message" to the print log.

base = "This is a message"
strins( base, 10, "great " )
print( _result )

See Also

strmid, strlen, strfind, strbreak, strspan, stricmp, strrev, strtrim, strlower, strupper