Zum Hauptinhalt gehen

Report Designer null exceptions

Kommentare

3 Kommentare

  • Permanently deleted user

    Hi Mark,

    You could try something similar to this: Not String.IsNullOrEmpty(_strICAD.Trim())

    0
  • Mark Norbury

    Using String.IsNullOrEmpty(_strICAD.Trim()) also returns an error for null value fields, the same as before: "Control Script failed for control".

    0
  • Mark Norbury

    I've tried expanding the formula to handle both nulls and empty strings.

    (UNIT_NUM IsNot Nothing ? (UNIT_NUM.ToString().Trim() != "" ? UNIT_NUM.ToString().Trim() + "-": "") : "") + ":UNIT, " (STREET_NUM IsNot Nothing ? (STREET_NUM.ToString().Trim() != "" ? STREET_NUM.ToString().Trim() != "" + " " : "") : "") + ":STREET_NUM, " + (STREET1 IsNot Nothing ? (STREET1.ToString().Trim() != "" ? STREET1.ToString().Trim()  : "") : "") + ":STREET1."

    If UNIT_NUM is an empty string then this returns a completely empty string.  It's not even returning the ":UNIT, "

    If UNIT_NUM is a null then this is no longer returning an error.  However it's also returning a completely empty string in this case too.

    The Geocortex log file shows lots of DEBUG messages but no ERROR messages.

     

     

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.