Logo

Programming-Idioms

History of Idiom 137 > diff from v33 to v34

Edit summary for version 34 by EvilGenius:
New VB implementation by user [EvilGenius]

Version 33

2019-09-27, 22:58:15

Version 34

2019-09-27, 23:02:02

Idiom #137 Check if string contains only digits

Set boolean b to true if string s contains only characters in range '0'..'9', false otherwise.

Idiom #137 Check if string contains only digits

Set boolean b to true if string s contains only characters in range '0'..'9', false otherwise.

Code
Dim x As String = "123456"
Console.WriteLine(IsNumeric(x))