3 ways to convert Null values to Empty string using VB.net

Rajnilari2015
Posted by Rajnilari2015 under VB.NET category on | Points: 40 | Views : 1888
Dim sampleString As String = Nothing
Dim result1 = If(sampleString, String.Empty)
Dim result2 = String.Concat(sampleString)
Dim result3 = If([String].IsNullOrEmpty(sampleString), "", sampleString)

Comments or Responses

Login to post response