static void Job(Args _args) 
 { 
    int number=10;
    do
     {
        print (strfmt("current number = %1", number));
        number --;
     }while (number != 0)  
  }
This is a job just for testing do-while in X++ , and I get a "syntax error" in the last '}'
I'm new to Dynamics AX and to X++, so I don't know if there's something I'm missing, but I'd say it should work.
-----[EDIT]-----
second part of the question was moved to a separate question