![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2006
Posts: 8
Rep Power: 0
![]() |
Compilation Error
Hi
I have a problem .... Compiler Error Message: BC30455: Argument not specified for parameter 'description' of 'Public Function InsertNewItems(assetType As String, trackStatus As String, serialNo As String, assetTag As String, name As String, description As String, status As String) As Integer'. Source Error: Line 21: and txtName.Text <> "" and txtDesc.Text <> "" and selectStatus.SelectedIndex <> "0" Then Line 22: Line 23: InsertNewItems(strAssetType,trackStatus, name,description, status) Line 24: lblMessage.Text = "You have submitted your form successfully" Line 25: Clear() Source File: C:\Documents and Settings\kdb3684\Desktop\Warehouse_Services_Operations_System\new_item.aspx Line: 23 sub btnSave_Click(sender As Object, e As EventArgs)
Dim strAssetType As string = lstAssetType.SelectedIndex
Dim TrackStatus As string = rbtnAssetType.SelectedIndex
Dim Quantity As string = txtQuantity.Text
Dim Name As string = txtName.Text
Dim Description As string = txtDesc.Text
Dim Status As string = selectStatus.SelectedIndex
If lstAssetType.SelectedIndex = 0 and rbtnAssetType.SelectedIndex = 0 and txtQuantity.Text = "" _
and txtName.Text = "" and txtDesc.Text = "" and selectStatus.SelectedIndex = 0 Then
lblMessage.Text = "Please Complete the form."
Else if lstAssetType.SelectedIndex <> "0" and rbtnAssetType.SelectedIndex <> "0" and txtQuantity.Text <> "" _
and txtName.Text <> "" and txtDesc.Text <> "" and selectStatus.SelectedIndex <> "0" Then
InsertNewItems(strAssetType,trackStatus, name,description, status)
lblMessage.Text = "You have submitted your form successfully"
Clear()
End if
End SubI dont seem to figure out the error |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
The function requires seven parameters, and you're specifying five. Put the others in.
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Apr 2006
Posts: 8
Rep Power: 0
![]() |
lol ... i need more coffee
![]() Thank you |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|