I am still struggling with this which seems to be turning into a three headed monster
VB seems to have a problem with this part
End If
If D2ProductID = 0 Then
D2ProductID = _
Convert.ToInt64(D2Adapter.InsertProductsQuery(D2ProductName As String, D2ProductShortDescrip As String, D2ProductLongDescrip As String, D2ProductPrice As System.Nullable(Of Decimal), D2ProductStockLevel As System.Nullable(Of Integer), D2ProductActive As Boolean, D2ProductShipCode As System.Nullable(Of Integer), D2ProductSpecial As Boolean, D2ProductSortOrder As Integer, D2ProductCatID As System.Nullable(Of Integer), D2ProductWeight As Integer, D2ProductImage1 As String, D2ProductImage2 As String, D2ProductImage3 As String, D2ProductImage4 As String, D2TaxExempt As Boolean, D2EstimatedShipping As Decimal, D2AllowReviews As Boolean, D2IsDownload As Boolean, D2DownloadPath As String, D2DownloadSize As System.Nullable(Of Integer), D2DownloadCap As Integer, D2DownloadGUID As String, D2SoftwareVersion As String, D2DownloadBinary() As Byte, D2FileType As String, D2FileName As String, D2DownloadExpiry As Integer, D2DateAdded As Date, D2ProductCode As String, D2Manufacturer As String, D2CatID2 As System.Nullable(Of Integer), D2PreviousPrice As System.Nullable(Of Decimal), D2ProductArea As String, D2ProductID As Integer) As Integer
LabelImport.Text &= "<font color=green>Products Imported " & " ID:" & D2ProductID & ".</font> <br>"
The error is that Argument not specified for parameter but it is usually only for the first 5 so I thought (I am awfully clever here) I will just delete the first five! No luck there it just move to the next five?
Is the string to long??
Even though the error seems to think the argument is not specified I believe it is - maybe I am wrong there?
I have a dataset with a query called InsertProductsQuery and all the fields are the same EXCACTLY I also have :
set default values for loop
Dim D2ProductID As Integer = Convert.ToString(reader("ProductID"))
Dim D2ProductName As String = Convert.ToString(reader("ProductName"))
Dim D2ProductShortDescrip As String = Convert.ToString(reader("ProductShortDescrip"))
Dim D2ProductLongDescrip As String = Convert.ToString(reader("ProductLongDescrip"))
Dim D2ProductPrice As System.Nullable(Of Decimal) = Convert.ToString(reader("ProductPrice"))
Dim D2ProductStockLevel As System.Nullable(Of Integer) = Convert.ToString(reader("ProductStockLevel"))
Dim D2ProductActive As Boolean = Convert.ToString(reader("ProductActive"))
Dim D2ProductShipCode As System.Nullable(Of Integer) = Convert.ToString(reader("ProductShipCode"))
Dim D2ProductSpecial As Boolean = Convert.ToString(reader("ProductSpecial"))
Dim D2ProductSortOrder As Integer = Convert.ToString(reader("ProductSortOrder"))
Dim D2ProductCatID As System.Nullable(Of Integer) = Convert.ToString(reader("ProductCatID"))
Dim D2ProductWeight As Integer = Convert.ToString(reader("ProductWeight"))
Dim D2ProductImage1 As String = Convert.ToString(reader("ProductImage1")) GOES ON ON AND ON..................................but everything is in there
and then again
Protected Function ImportIntoProducts(ByVal D2ProductArea As String, ByVal D2ProductName As String, _
ByVal D2ProductShortDescrip As String, ByVal D2ProductLongDescrip As String, ByVal D2ProductPrice As String, ByVal D2ProductStockLevel As String, ByVal D2ProductActive As String, ByVal D2ProductShipCode As String, ByVal D2ProductSpecial As String, ByVal D2ProductSortOrder As String, ByVal D2ProductCatID As String, ByVal D2ProductWeight As String, ByVal D2ProductImage1 As String, ByVal D2ProductImage2 As String, ByVal D2ProductImage3 As String, ByVal D2ProductImage4 As String, ByVal D2TaxExempt As String, ByVal D2EstimatedShipping As String, ByVal D2AllowReviews As String, ByVal D2IsDownload As String, ByVal D2DownloadPath As String, ByVal D2DownloadSize As String, ByVal D2DownloadCap As String, ByVal D2DownloadGUID As String, ByVal D2SoftwareVersion As String, ByVal D2DownloadBinary As String, ByVal D2FileType As String, ByVal D2FileName As String, ByVal D2DownloadExpiry As String, ByVal D2DateAdded As String, ByVal D2ProductCode As String, _
ByVal D2Manufacturer As String, ByVal D2CatID2 As String, ByVal D2PreviousPrice As String, ByVal D2ProductID As Integer) As Integer
D2ProductID = Left(D2ProductID, 100)
D2ProductName = Left(D2ProductName, 100)
D2ProductShortDescrip = Left(D2ProductShortDescrip, 100)
WHERE AM I GOING WRONG WHAT AM I MISSING??