Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Empty-string/Visual-Basic-.NET/empty-string-1.vb
Normal file
14
Task/Empty-string/Visual-Basic-.NET/empty-string-1.vb
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 (more idiomatic in .NET):
|
||||
If String.IsNullOrEmpty(s) Then
|
||||
End If
|
||||
Loading…
Add table
Add a link
Reference in a new issue