Please enable JavaScript to view this site.

 

str = StrReplace(sFull,sOld,sNew,bAll,bIgnoreCase)

 

This macro function takes a string sFull and replaces occurrences of the string sOld by sNew.

 

bAll: when this parameter is true, all occurrences of sOld will be replaced, otherwise only the first occurrence will be replaced.

bIgnoreCase: when this parameter is true the search for occurrences of sOld is case insensitive. So, in that case, a value of 'nasa' for sOld would also find occurrences of 'NASA' and 'Nasa'.

 

See also: PadString.

 


Topic 110025, last updated on 18-Apr-2020