Report SetData doubts

MirvanMirvan Member Posts: 7
edited 2015-01-23 in NAV Three Tier
Hi all,

I have doubts (or questions) about standard SetData function.
Public Function SetData(NewData as Object,Group as integer)
  If Group = 1 and NewData > "" Then
      Data1 = NewData
  End If
...
Which sense have comparison of NewData against empty string ? I think, mostly this parameter contains concatenation of several strings (fields) separated with chr(177) and so it is unlikely to be empty.
And additional question: Why just chr(177) ?

Thanks for replies

Answers

  • TonyDuarteTonyDuarte Member Posts: 92
    About the comparison is because it can be a problem with the data and you are passing an empty object in the NewData to be assigned to the Data in the groups.

    Text ASCII
    ± chr(177)

    It's converted to this simbol, don't know the real reason but I can assume it was one of the few CHR that wouldn't be used in the values passed when you are creating your setdata string.
Sign In or Register to comment.