Article Details
Id:20411
Product:finPOWER Connect
Type:NEW
Version:4.00.03
Opened:08/06/2023
Closed:05/07/2023
Released:27/09/2023
Job: J031264

Validation functions; IsValidUri() function added

The following Business Layer function has been added:

  • finBL.Runtime.Validation.IsValidUri(URI, Message, Scheme, AllowBlank)
    • URI is the URI you want to check, e.g. "https://www.intersoft.co.nz"
    • Message returns the error message if the validation fails
    • Scheme is an optional ByRef parameter that will return the Uri scheme if provided
      • e.g. "http", "https", "ftp"
    • If AllowBlank is True then the function will return True if URI is blank
      • Optional parameter; defaults to False
  Dim Message As String
  Dim Scheme As String
  Dim Success As String
  Dim URI As String
  
  URI = "https://www.intersoft.co.nz"
  
  Success = finBL.Runtime.Validation.IsValidUri(URI, Message, Scheme, True)