Posts by dentedduck

    Re: Check if string contains a number


    Here's where a little bit of Linq can make life easier. This will return a boolean telling if there's at least one numeric character in the string.

    (from items in inputString.ToCharArray Where Char.IsDigit(items)).Count <> 0


    Dave