[mono-vb] Import Row System.Data.DataRow

Easy_Rider9999 jhmgbl2 at t-online.de
Wed May 13 11:36:00 EDT 2009


I have solved the problem. I found a workaround, which works both under Linux
and under Windows. It is not very nice but it works:

For Each dr In dt.Rows
            If _dtMedikamente.FindByID(CInt(dr!ID)) Is Nothing Then
              Try
                gStatus = CodeLoc & " Import Row LS2 " & dr.ToString
               
_dtMedikamente.ImportRow(_clsdbRep.Medikamente.FindByID(CInt(dr!ID)))
              Catch e As ConstraintException
                'NOP
              Catch e As Exception
                HandleError(e, CodeLoc)
              End Try
            End If
          Next

I have to add that _dtMedikamente and _clsdbRep are typed datatables and
dataset automatically generated by VBExpress from an MDB-Database. I have
converted them to SQLite. 

Regards

Hans
-- 
View this message in context: http://www.nabble.com/Import-Row-System.Data.DataRow-tp23486609p23524294.html
Sent from the Mono - VB mailing list archive at Nabble.com.



More information about the Mono-vb mailing list