September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
14
Task/Empty-string/Visual-Basic-.NET/empty-string-1.visual
Normal file
14
Task/Empty-string/Visual-Basic-.NET/empty-string-1.visual
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
Dim s As String
|
||||
|
||||
' Assign empty string:
|
||||
s = ""
|
||||
' or
|
||||
s = String.Empty
|
||||
|
||||
' Check for empty string only (false if s is null):
|
||||
If s IsNot Nothing AndAlso s.Length = 0 Then
|
||||
End If
|
||||
|
||||
' Check for null or empty (most idiomatic .NET way):
|
||||
If String.IsNullOrEmpty(s) Then
|
||||
End If
|
||||
Loading…
Add table
Add a link
Reference in a new issue