在此代码块中调用“CalculateFutureValue”子程序的子例程或标记是什么 [英] What the subroutine or tag that calls the “CalculateFutureValue” subrountine in this code block

查看:92
本文介绍了在此代码块中调用“CalculateFutureValue”子程序的子例程或标记是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dim futureValue As Decimal = Me.CalculateFutureValue(monthlyInvestment,annualInterestRate,years)

Dim futureValue As Decimal = Me.CalculateFutureValue(monthlyInvestment,yearlyInterestRate, years)

推荐答案

Quote:

子和函数都是子程序,或者是程序中可以调用的代码段。它们之间的区别在于函数具有返回值而子函数没有。

A sub and a function are both subroutines, or sections of code that can be called in the program. The difference between them is that a function has a return value and a sub does not.



参考:私有子,功能和类之间的区别 [ ^ ]

单击计算按钮时会触发btnCalculate_Click事件并在该事件内使用参数和返回值调用的函数(CalculateFutureValue)将分配给 futureValue


refer: Difference between Private Sub, Function and Class[^]
when you click calculate button it will fire the btnCalculate_Click event and inside that event your function(CalculateFutureValue) called with parameters and returned value will assign to futureValue

Dim futureValue As Decimal = Me.CalculateFutureValue(monthlyInvestment,yearlyInterestRate, years)


好的,我想我得到的是你要的



按表格/ html页面上的按钮,标记为'btnCalculate_Click'

-Calls-> Sub btnCalculate_Click

-Calls-> CalculateFutureValue



看起来你让我们为你做功课 - 这会停止,不是吗?
ok, I think I get what you're asking for

Button on form/html page, Tagged 'btnCalculate_Click'
-Calls-> Sub btnCalculate_Click
-Calls-> CalculateFutureValue

it looks like you are getting us to do your homework for you - this will stop, wont it ?


这篇关于在此代码块中调用“CalculateFutureValue”子程序的子例程或标记是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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