Microsoft Dynamics Ax developer's blog

Tuesday, May 23, 2006

Undocumented syntax: raw strings in X++

While reading the Fred Shen post Create a method in runtime i discovered the undocumented feature of X++: raw (or verbatim strings). If you place @ before " you can:

  • do not escape escaping characters

  • make multiline string


so

str s=@"
test\test
";

is equivalent to

str s="\r\n";
s=s+" test\\test\r\n"


so it is useful when you want to make methods or AOT pathes (BTW why Fred uses string for pathers ("\\Forms\\Address\\Data Sources\\Address\\Fields\\AddrRecId") instad of raw strings (@"\Forms\Address\Data Sources\Address\Fields\AddrRecId")

see also

Sunday, May 14, 2006

ParserClass and KOAN

Just finished an article about a ParserClass and added the new tool named 'KOAN'. It shows the structure of X++ code and lets to play with ParserClass and ScannerClass easily.
KOAN Syntax Explorer

Saturday, May 06, 2006

Sidax 0.3.5

Now you can download it (20k).

  • if you press a small heart at the main menu you see only previously used menu items
  • you can move you settings between databases (see 'about' tab)
  • if you rightclick the project history you can delete projects from history nd copy names
  • small visual improvements

What is Sidax?