Skip to Content
avatar image
Former Member

User-defined function - parseInt

Hi,

I have a user-defined function that has two string parameters:

Need to parse the 1st. parameter to an integer to check whether it is less than 200.

I have tried the following.

int c = parseInt(a).

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 22, 2006 at 10:42 AM

    Hi Morten

    try this:

    int c = Integer.parseInt(a);

    Hope this help

    Francesco

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Morten,

      this is the complete code:

      try

      {

      int c = Integer.parseInt(a);

      }

      catch(java.lang.NumberFormatException nfEx)

      {

      }

      Hope this help

      Francesco

  • avatar image
    Former Member
    Dec 22, 2006 at 04:29 PM

    Hi Morten.

    please reward points!

    Thanks

    Francesco Bersani

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Morten,

      probably some sdn problems 😔

      Anyway, i'm happy you've solved the problem!

      Merry Christmas and happy new year!

      Francesco