Logo

Programming-Idioms

History of Idiom 137 > diff from v36 to v37

Edit summary for version 37 by silver-dragon:
[VB] changed message to comply with the lead paragraph

Version 36

2019-09-29, 12:10:54

Version 37

2019-09-30, 19:38:53

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))
Code
Dim x As String = "123456"
Dim b As Boolean = IsNumeric(x)