• I suggested that as an alternative. I assume that in his case, he wants to know the value that doesn't have a dash in it.

    But, if that's the case, it's probably more efficient to just return the the string to the right of the dash WITHOUT converting it to an integer.

    And then there's the question of ordering in this sequence 1,2,11 (integer) or 1,11,2 (char).

    Fun, fun, fun. 🙂

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills