6 Replies Latest reply on Feb 11, 2015 10:42 AM by philmodjunk

    "hide Object when" not working with 'GetNthRecord'

    J.M.Schomburg

      Title

      "hide Object when" not working with 'GetNthRecord'

      Post

      I'm going slightly mad here (again), and apologies if I'm overlooking something obvious.

      I'm trying to hide (show, actually, but for simplicity...) a layout object, but only if a same field in its previous record (above) is empty. I use the phrase:

      GetNthRecord ( TargetTable::TargetField; Get ( RecordNumber ) - 1) = ""

      and even 

      IsEmpty(GetNthRecord ( TargetTable::TargetField; Get ( RecordNumber ) - 1))

      or I even tried

      GetNthRecord ( TargetTable::TargetField; Get ( RecordNumber ) - 1) = TargetTable::TargetField

      ...to no avail. Yet I see many other examples of GetNthRecord being used in this way.

      Am I missing something obvious?

      Thanks, best,

      Josef.