错误:在vb.net编程中 [英] error: in vb.net programming

查看:49
本文介绍了错误:在vb.net编程中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个错误:

I have an error:

Too many arguments to 'Public Overridable Overloads Function firstname(dataTable As loginDataSet.staffDataTable) As Integer'.	


以下是我的编码,我也强调了这个问题.我正在使用Visual Studio 2005,我的数据库名称是login,表是staff.


Below is my coding and i also highlight the problem. I am using visual studio 2005 , my database name is login and table is staff.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsearch.Click
        StaffTableAdapter.firstname(Me.LoginDataSet.staff, search.Text)
    End Sub

推荐答案

首先,请不要在您的主题栏中告诉我们显而易见的内容.尝试说出与问题更相关的内容.在这种情况下,问题在于您实际上并不知道如何编程.您的方法采用一个参数,但您要传递两个参数.您有清晰的错误消息向您解释,所以您为什么感到困惑?
First of all try not to tell us the obvious in your subject line. Try to say something that is more pertinent to the problem. In this case, the problem is that you don''t really know how to program. Your method takes one parameter, but you''re passing it two. You have a clear error message explaining this to you, so why are you confused ?


您的错误消息本身在说什么问题.您的firstname 函数只有一个参数.但是,从按钮单击事件中,您传递了两个参数.您必须删除search.Text或在firstname 函数中添加一个以上的参数.
Tour error message itself saying what is the problem. Your firstname function is having only one argument. But, from the button click event you are passing two parameters. You have to remove search.Text or you have to add one more argument in firstname function.


这篇关于错误:在vb.net编程中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆