Mehram
asked on
MS VS-2005 Function Null value return ''
I have the following function to convert "1/1/1900" date into " " which is working
However if the value is null then this function is not working.
Protected Function PARSEDATE(ByVal ARG) As String
If ARG.ToString().StartsWith( "1/1/1900" ) Then
Return " "
Else
Return ARG
End If
End Function
Could you please help how to fix that
However if the value is null then this function is not working.
Protected Function PARSEDATE(ByVal ARG) As String
If ARG.ToString().StartsWith(
Return " "
Else
Return ARG
End If
End Function
Could you please help how to fix that
ASKER
isnull is not working
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If IsNull(ARG) Then
Return " "
Else
' do your stuff here
End If