literalStr Function [AX 2012]

Updated: November 18, 2010

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Validates that the specified string can be a literal string; if not, a compiler error occurs.


str literalStr(int str)

Parameter

Description

codename

The string to validate.

The literal string if valid.

This function is an intrinsic function, which is a metadata assertion function. Intrinsic functions validate arguments at compile time. They have no effect at run time.

{
    str s;
    ;
 
    s = literalStr("This is a literal str");
    print s;
    pause;
}

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Community Additions

ADD
Show: