Search

April 12, 2013

InsertInto - XpressDox

Insert a character/string in the middle of another string

 

Example 1:

This function permits something like:

«InsertInto(Name,4,'.')»

So that if Name is “F.R Basset” then the value “F.R. Basset” is inserted into the document by the function i.e. a ‘.’ is inserted in the 4th position in the string.

 

Example 2:

The function can also be used inside a command such as an OnEnterSet, to insert the string while in the interview.


«CaptureDataElements(FirstString,SecondString,Result)»
«OnEnterSet(Result,Result,Value,(),InsertInto(FirstString,5,SecondString),,EvenWhenNotEmpty)»