NEW3.02.01 · Released 12 September 2019
NEWfinPOWER Connect
Released in
3.02.01
12 September 2019
- Opened9 Aug
- Closed9 Aug
- Released12 Sep
Article 16255
Job J022729
Validation; new Business Layer function to return a String with all non-printable ASCII characters removed
A new Business Layer function to return a String with all non-printable ASCII characters removed has been added.
The function is finBL.Runtime.Validation.ValidateStringAsciiPrintable as has the parameters:
- value As String
- The raw String.
- Optional maxLength As Integer = -1
- Maximum number of characters, -1 = any
- Optional allowNewLines As Boolean = False
- Option to allow New Line characters.
Notes:
- Diacritical characters are replaced with their equivalent upper/ lower case character.
- ASCII values 32 to 126 are allowed, all other characters are removed (except newlines if allowed).
- Trailing whitespace, i.e. spaces and new lines, are always removed.