Forum Discussion

murugans1011's avatar
murugans1011
Regular Contributor
10 years ago
Solved

aqconvert error

I m using aqconvert.StrtoInt to convert a number from str to int and i m getting following error during execution



    text=aqconvert.StrToInt("5400238729")



'Argument is not  a number
  • Hi Murugan S, your number may be to large, aqConvert.StrToInt( "540023872" ) works.

     


    Try using:


     


    text = aqConvert.StrToInt64( "5400238729" );


     


    Regards,


    Phil Baird

2 Replies

  • Philip_Baird's avatar
    Philip_Baird
    Community Expert
    Hi Murugan S, your number may be to large, aqConvert.StrToInt( "540023872" ) works.

     


    Try using:


     


    text = aqConvert.StrToInt64( "5400238729" );


     


    Regards,


    Phil Baird

  • murugans1011's avatar
    murugans1011
    Regular Contributor




    Hi Thanks for ur reply,



    text = aqConvert.StrToInt64( "5400238729" );    works:)