InstallShield 2019 ยป InstallScript Language Reference
The StrReplace function searches svResult, beginning at the location specified by nStart, and replaces all found instances of szFind with szReplace.
Syntax
StrReplace ( svResult, szFind, szReplace, nStart );
Parameters
| Parameter | Description | 
| svResult | Specifies the string to search. Returns the modified string. | 
| szFind | Specifies the string to find in svResult. | 
| szReplace | Specifies the string with which to replace found instances of szFind. | 
| nStart | Specifies an offset into svResult that identifies the character at which to begin the search for szFind. Note that the position of the first character in szString is 0 (zero). If you want to replace all instances of szFind in svResult, specify 0 for nStart. | 
Return Values
| Return Value | Description | 
| X | The total number of replacements of szFind by szReplace. | 
| < ISERR_SUCCESS | Indicates that the function failed. A value less than ISERR_SUCCESS is returned if szFind is a null string ("") or if nStart is greater than the length of svResult. | 
See Also
| InstallShield 2019 Help LibraryApril 2019 | Copyright Information | Flexera |