|
Previous Top Next |
Prototype: | (STRING pStringToAdd, STRING pStringToAddTo, LONG pPosition),STRING |
pStringToAdd | The string to add into pStringToAddTo. It can be of any length. |
pStringToAddTo | The string to add pStringToAdd into. It can be of any length. |
pPosition | Position in pStringToAddTo where pStringToAdd should be inserted. This can be any value from 1 to LEN(pStringToAddTo) |
Returns | The contents of the insertion of pStringToAdd into pStringToAddTo. |
This method allows you to insert one string into another at a given position.
Example:
ITS ITStringClass
S String(1024)
Code
S = 'Text insert to'
S = ITS.InsertString( ' to',S, 4)
S = ITS.InsertString( 'in', S,15)
!! "Text to insert into"
See also: