Thursday, 10 January 2013

Microsoft Dynamics AX 2012 R2 - classStr Function

Retrieves the name of a class as a string.


  • str classStr(class class)


  • Parameter: class
  • Description: The name of the class to return.
Use this function instead of literal text to retrieve a string that contains the class name. If the class does not exist, the function generates a syntax error at compile time.

Return Value

  • The name of the class.


  • X++
static void clStrExample(Args _args)
    str s;
    s = classStr(Global);
    print s;

My above blog is based on Microsoft's Official information.

I hope this blog about 'Microsoft Dynamics AX 2012 R2 - classStr Function' was informative. Please feel free to leave your comments.

No comments:

Post a Comment