Comparing .NET values

  • Post comments:2 Comments
  • Reading time:1 mins read

When comparing .NET variables, including Enums, you cannot use C/AL comparison operators. To compare .NET variables, you must use the Equals method (of the System.Object type) that all .NET┬átypes implement…

Continue ReadingComparing .NET values

Formatting for XML

  • Post comments:3 Comments
  • Reading time:1 mins read

When you have to format C/AL variables (numbers, dates/times, booleans) for exchange with other apps, call FORMAT(variable,0,9) instead of simply FORMAT(variable). The format 9 formats the variable according to XML…

Continue ReadingFormatting for XML