| Substitute | Top Previous Next | 
| Prototype 
 Substitute (strTarget,strOldStr,strNewStr); 
 Description 
 Replace in a string the substring occurrence with another ones. 
 Parameters 
 strTarget: string representing the input value. 
 strOldStr: string representing substring to replace 
 strNewStr: string representing the substring to insert 
 Returned Value 
 None 
 Notes 
 None. 
 Example 
 
 NomeDir:=ExtractFilePath(_CurrentInputFile); 
 // It lists the file contained in a directory FileList:=FilterFiles(NomeDir+'*.pdf'); 
 //It inserts a carriage return at the end of file name Substitute (FileList,'.pdf,','.pdf'+Chr(13)); 
 
 |