Want to check weather no is numerical or not ??

JAYESHJAYESH Member Posts: 290
Hi ..

I want to check weather the no which go in check no is interger or not ??
Can any give me the idea....

Thank you..
JAYESH PATEL

Answers

  • ta5ta5 Member Posts: 1,164
    If I get it correctly then you want to check whether a code/text can be converted into integer or not.
    You can use the evaluate function (see help) and use the return value of that function (yes=ok, no=nok)

    hth
    Thomas
  • JAYESHJAYESH Member Posts: 290
    Hi thankx for the reply

    Actually i have one no which contain integer and text values i want to check weather that no is integer or not ??

    Thank you..
    JAYESH PATEL
  • David_CoxDavid_Cox Member Posts: 509
    JAYESH wrote:
    Hi thankx for the reply

    Actually i have one no which contain integer and text values i want to check weather that no is integer or not ??

    Thank you..

    Numerical := EVALUATE(integer,Text);

    So

    IF EVALUATE(Number,TEXT) THEN
    //Do Something
    ELSE
    // Do Something Else
    Analyst Developer with over 17 years Navision, Contract Status - Busy
    Mobile: +44(0)7854 842801
    Email: david.cox@adeptris.com
    Twitter: https://twitter.com/Adeptris
    Website: http://www.adeptris.com
  • ta5ta5 Member Posts: 1,164
    Do you have a Code like A2730?
    If yes, then you have to loop through the string and use evaluate for each substring.
    Does this match?
  • JAYESHJAYESH Member Posts: 290
    I got it..

    Thankx for the reply....
    JAYESH PATEL
Sign In or Register to comment.