通过粘贴值来调用此方法的另一种方法 [英] another method to call this method by pasing value
本文介绍了通过粘贴值来调用此方法的另一种方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在此代码文件中,编写具有此签名的方法.
Hi,
In this code file write a method having this signature.
Public Function SaveSMTPSettings(ByVal SMTP_Host As String, ByVal SMTP_Port As String, ByVal From_Email As String,
ByVal Email_Password As String, ByVal Default_From As String)
另一个方法是通过粘贴-
的值来调用此方法
txtSMTP_Host , txtSMTP_Port , txtFrom_Email , txtEmail_Password , txtDefault_From
在各个位置.
And another method to call this method by pasing value of -
txtSMTP_Host , txtSMTP_Port , txtFrom_Email , txtEmail_Password , txtDefault_From
in respective positions.
推荐答案
首先,您在上面提供的所有代码都不是方法,而是函数.方法与function.Function总是返回一个值.
您可以使用以下代码调用上述函数:
First of all whatever code you provided above is not a method it''s a Function.There is so much difference between method and function.Function always returns a value.
You can call above function using following code :
SaveSMTPSettings(txtSMTP_Host.Text , txtSMTP_Port.Text , txtFrom_Email.Text , txtEmail_Password.Text , txtDefault_From.Text)
这篇关于通过粘贴值来调用此方法的另一种方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文