Dim ROAD As String If Not IsDBNull([ROAD_NAME]) Then ROAD = [ROAD_NAME] Else ROAD = "NONE" End If
I am using ModelBuilder and have the following:Dim ROAD as StringROAD = [ROAD_NAME]if isNull(ROAD) = True thenROAD = "NONE"End If
Public Shared Function GetStringValue(ByVal value As Object) As String If value Is DBNull.Value Then Return String.Empty Else Return Convert.ToString(value) End If End Function
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.