IsNumeric Equivalent in C/SIDE

anushafdoanushafdo Member Posts: 32
edited 2013-10-29 in NAV Three Tier
Hi
NAV 2013
I want to know whether the contents in the code/text field is a FULLY numeric or not. Is there a way/function to check this way? or can you please share some ideas for this?

Thank you

Nufdo

Comments

  • BeliasBelias Member Posts: 2,998
    if evaluate(mydummydecimal,mytext) then
      message('i am a number!')
    else
      message('i am just a random text, you lose!);
    
    i used a decimal in case you can have some text like "10,45"...you can use an integer, if decimals are not allowed.
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
Sign In or Register to comment.