Prototype
Insert(strSub,strDest,intPos)
Description
It inserts a substring in a string,in the shown position.
Parameters
StrSub: adding string.
StrDest: destination string.
IntPos: position inside the string.
Returned value
None.
Notes
None.
Example
//It stores current user's name
UserName:=_JobUser;
// It stores the string lenght JobUser
LengName:=Length(UserName);
//It stores date and time
DateHour:=Now;
//It converts date and time into string
DateHourStr:=FormatDateTime('DD/MM/YYYY HH:NN:SS',DateHour);
//It puts together the user name and the date/hour into a string.
Insert(DateHourStr,UserName, LengName+1);