cancel
Showing results for 
Search instead for 
Did you mean: 

User-defined function - parseInt

Former Member
0 Kudos

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).

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Morten

try this:

int c = Integer.parseInt(a);

Hope this help

Francesco

Former Member
0 Kudos

Thanks

Former Member
0 Kudos

Hi Morten,

this is the complete code:

try

{

int c = Integer.parseInt(a);

}

catch(java.lang.NumberFormatException nfEx)

{

}

Hope this help

Francesco

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Morten.

please reward points!

Thanks

Francesco Bersani

Former Member
0 Kudos

Hi Francesco

Sure thing, I will do that when I find out how. Can´t find the radiobuttons

Former Member
0 Kudos

Hi Morten,

probably some sdn problems

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

Merry Christmas and happy new year!

Francesco