I am trying to test for null values in my datareader after returning a successful query. Gathering information from other solutions found on this site, I managed to put together the below test. It is not quite right, however, as I get an error message on run-time.
If drPhysicalAddress.GetString(drPhysicalAddress.GetOrdinal("AptSuite")).IsNullOrEmpty = True Then
txtPhysicalAddressAptSuite.Text = ""
txtPhysicalAddressAptSuite.Text = drPhysicalAddress.GetString(drPhysicalAddress.GetOrdinal("AptSuite"))
Argument not specified for parameter 'value' of 'Public Shared Function IsNullOrEmpty(value As String) As Boolean'.
Is there a better way to test for null value? What am I doing wrong?
Any help would be much appreciated. Thank you in advance for your time.