Logo

Programming-Idioms

History of Idiom 110 > diff from v45 to v46

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

Version 45

2019-09-27, 21:39:30

Version 46

2019-09-29, 01:38:25

Idiom #110 Check if string is blank

Set boolean blank to true if string s is empty, or null, or contains only whitespace ; false otherwise.

Idiom #110 Check if string is blank

Set boolean blank to true if string s is empty, or null, or contains only whitespace ; false otherwise.

Code
Dim myString As String = "abcdefg"
If String.IsNullOrEmpty(myString) Then
    '''
End If