www.icetips.com  Icetips Utilities Documentation 7/6/2014    

String Class:  InsertString

Previous  Top  Next  


Prototype: (STRING pStringToAdd, STRING pStringToAddTo, LONG pPosition),STRING

 

pStringToAddThe string to add into pStringToAddTo.  It can be of any length.
pStringToAddToThe string to add pStringToAdd into.  It can be of any length.
pPositionPosition in pStringToAddTo where pStringToAdd should be inserted.  This can be any value from 1 to LEN(pStringToAddTo)

 

ReturnsThe 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:

Lines

AddLine

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/insertstring_stringclass.htm