Article Details
Id:16255
Product:finPOWER Connect
Type:NEW
Version:3.02.01
Opened:09/08/2019
Closed:09/08/2019
Released:12/09/2019
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.