Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/11/2013, 16:33
Avatar de aid_val
aid_val
 
Fecha de Ingreso: mayo-2013
Ubicación: Guanajuato
Mensajes: 302
Antigüedad: 11 años
Puntos: 5
Ver si alguna fila de mi dataset esta vacia

Asi empiezo mi código:
Código:
   For Each row In ds.Tables(0).Rows

            Try
                'If previousConnectionState = ConnectionState.Closed Then
                '    conn.Open()
                'End If
                If row(3) = " " Then

                    row(3) = Nothing
                End If

                If row(4) = 0.0 Or Nothing Then
                    row(4) = Nothing
                End If
                If row(5) = 0.0 Or Nothing Then
                    row(5) = Nothing
                End If
                If row(6) = 0.0 Or Nothing Then
                    row(6) = Nothing
                End If
y lo que quiero esque se guarde null si tiene vacio o si tiene 0.0 pero me marca el siguiente error

El operador '=' no está definido para tipo 'DBNull' ni para cadena " ".

y no se porque sea


Ayuda!!!!!