Article Details
Id:13480
Product:finPOWER Connect
Type:NEW
Version:2.03.04
Opened:03/12/2015
Closed:03/12/2015
Released:03/02/2016
Job: J016647

New finBL.DebugPrint method that can accept an object value

The standard finBL.DebugPrint method (used by Scripts) requires that a String value is passed to it.

A new, overloaded version allows an Object value to be passed. For value-type objects, this will simply format them as Strings. For object-type values, it will attempt to expand each of the first-level object properties.

NOTE: Use finBL.DebugWatch for a more complete view of an object-type value.

The following, General Script demonstrates this new method:

Public Function Main(parameters As ISKeyValueList) As Boolean

  Dim Account As finAccount
  Dim s As String

  ' Assume Success
  Main = True

  s = "Hello"
  Account = finBL.CreateAccount()
  Account.Load("L10000")

  finBL.DebugPrint(s)
  finBL.DebugPrint(Main)
  finBL.DebugPrint(Account)


End Function