Search:

Type: Posts; User: sunde

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    1,527

    Re: Command For Rolling Random Number

    I'm glad to have helped.
  2. Replies
    7
    Views
    1,527

    Re: Command For Rolling Random Number

    When you try and parse an integer that contains something other than 0-9, what happens? Is an exception thrown? If so, which?

    Try catching that exception in the catch and do whatever you want in...
  3. Replies
    7
    Views
    1,527

    Re: Command For Rolling Random Number

    try{
    //try something
    } catch(/*some exception*/){
    //do something as a result of catching the exception
    }

    read up on exceptions if necessary.
  4. Replies
    7
    Views
    1,527

    Re: Command For Rolling Random Number

    Sounds like you may want to wrap the parse in a try catch clause, and be prepared to catch a number format exception.
Results 1 to 4 of 4