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

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

x++ code to submit and approve and reject the invent movement workflow in d365 F&O