Article Details
Id:20461
Product:finPOWER Connect
Type:NEW
Version:4.00.03
Opened:17/07/2023
Closed:17/07/2023
Released:27/09/2023
Job: J031561

Business Layer: new function to replace text added to ISTextUtilities

A new function to replace text within a string with case insensitive searches, has been added to ISTextUtilities, i.e. finBL.Runtime.TextUtilities.

NewString = finBL.Runtime.TextUtilities.ReplaceText(SourceString, OldValue, NewValue, IgnoreCase)

The ReplaceText function includes the ability to use case insensitive searches for oldValue within sourceString. The String.Replace function in the version of the .NET Framework's currently used for finPOWER does not include the ability to perform case insensitive searching.

The Visual Basic function Replace() provides case insensitive functionality, but is less accessible to C# programmers and is being retired in preference to the standard .NET String.Replace function. C# scripts would need to include the Microsoft.VisualBasic namespace.