Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 8th, 2006, 6:23 AM   #1
Mitsuki
Newbie
 
Mitsuki's Avatar
 
Join Date: Apr 2006
Posts: 8
Rep Power: 0 Mitsuki is on a distinguished road
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 Sub


I dont seem to figure out the error
Mitsuki is offline   Reply With Quote
Old Apr 8th, 2006, 9:00 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
The function requires seven parameters, and you're specifying five. Put the others in.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Apr 9th, 2006, 2:15 AM   #3
Mitsuki
Newbie
 
Mitsuki's Avatar
 
Join Date: Apr 2006
Posts: 8
Rep Power: 0 Mitsuki is on a distinguished road
lol ... i need more coffee
Thank you
Mitsuki is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:40 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC