DAL Updates

There have been various updates to DAL functionality that are deemed corrections or improvements.
  • DelSubform

    This function is meant to locate and remove a named subform. Previously, if the script named a subform that could not be located the entire transaction and even the application might terminate. This has been corrected. If a call to DelSubform does not locate the requested item, the function returns the 0 result.

  • SpanField

    This function moves a field between two other fields (the left and right fields) to “span” the distance with a fill character.

    If called when the field on the left was empty (no data), the span field function would incorrectly assign the fill character to the wrong field. This has been corrected.

    If both the left and right field are empty (no data), the span field will also be empty – effectively suppressing the span.

  • PatchRelease

    This function previously returned an incorrect value as the patch number. The Documaker version number takes this form.

    Full Version Number = A.B.C.D.E (e.g., 13.0.2.0.37200):
    • A is Major Version number of the release (e.g., 13 in example above)
    • B is Minor Version number of the release (e.g., 0 in example above)
    • C is Minor Release number of the release (e.g., 2 in example above)
    • D is Patch Release number (e.g., 0 in example above)
    • E is Build Release number (e.g., 37200 in example above)

    The PatchRelease function should return the fourth component of the full version number.

  • FieldRule

    Omitting the field length will now default to use the defined field length on the section. This change should help in those cases where the ultimate field length may not be known by the script writer and prevent script changes if the field length is later changed in the section.

  • StrCompare

    The StrCompare should return values 0, -1, or 1 depending upon whether the strings are equivalent or one is lexicographically “lessor” or “greater” than the other. Previously, executing the same script on Windows versus Linux could return other values. The platform differences have been eliminated.

  • Cut

    With the release of 13.0.x (64-bit), the Cut function interpreted the Position parameter of 0 incorrectly. This change restores the behavior of position 0 to work as before.

  • DBUnloadDFD

    On Linux platform this function could fail because of improper handling if subfolder names were included. This has been corrected so that Windows and Linux should manage the path name appropriately.

  • PathExist

    On Linux platform this function could fail because of improper handling if subfolder names were included. This has been corrected so that Windows and Linux should manage the path name appropriately.