Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger


Wednesday, September 7, 2011

strfmt function in Microsoft Dynamics AX X++

This method is used to format a string and change any occurrences of %n with parameter n.
To illustrate this, the next Job will print 100: Welcome to Carz Inc

static void Datatypes_string_strmft(Args _args)
{
str name;
int a;
;
name = "Carz Inc";
a = 100;
print strfmt("%1: Welcome to %2", a, name);
pause;
}

Notice that the strfmt function also converts any other data types into string.

2 comments:

Archives