SubstituteChars

Top  Previous  Next

Prototype

 

SubstituteChars (strTarget,strOldChars,strNewChars);

 

Description

 

In a string replace the occurrence of characters whit other ones. nth character OldChars in Target are replaced whit nth character of NewChars.

 

Parameters

 

strTarget: string representing input value

 

strOldChars: string containing the characters to replace

 

strNewChars: string containing new characters

 

Returned Value

 

None

 

Notes

 

This function can be used to normalize the field deleting some characters

Example

//It initializes string variable

Value:=’ 10. 12. 20 1 2’;

 

//It replaces the characters

SubstituteChars(Value,’. ‘,’/’);

 

//It logs the output value

ApplicationLog('Modified value: '+Value);