how to Validate a field for Only Numerical value in Ax 2012

 static void StringValidate(Args _args)

{

str s;

s=”A123″;

try

{

info(strFmt(“%1”,formattedstr2Num(s)));

}

catch

{

info(“dont enter characters other than numericals”);

}

}

Comments

Popular posts from this blog

How to Create a wizard in x++ d365

how to post trade agreement journals automatically using x++ code

X++ code to CREATE AND POST A TRADE AGREEMENT IN MICROSOFT DYNAMICS 365 in D365 F & O