Difference of Function and Sub
来源:互联网 发布:国外即时通讯软件排名 编辑:程序博客网 时间:2024/05/23 22:00
The easiest way to think of a sub vs a function is that a function can return a value and a sub cannot.
Sub can be thought of as a small program that performs some action that is contained within the program. Subs can be used to update a cell or perform an import and calculation, but the result can't be returned to another sub or function. Another thing to note is that a sub (or macro) cannot be accessed directly by a cell reference. For example, when a cell is used to show today's date, =Today(), that formula is also a built-in function, not a sub.
Function is similar similar to a sub, except that a function can return a value. It may be easier to think of a function as similar to a formula in excel. You can provide the function the necessary inputs and the function returns the desired value. You can build a custom function for just about any action and then access that function from either a call from a macro, or a direct reference from a cell.
- Difference of Function and Sub
- about function and sub
- VBScript Sub and Function Demo
- Difference between Action and Function
- difference of padding and margin
- the difference of echo&print function
- Difference between function substring() and substr()
- Difference between forward and include of RequestDispatcher
- The difference of typeof and GetType method
- The Difference of Override and Overload
- difference between data() and c_str() of basic_string
- python difference of pass and continue
- Difference between OnPaint and OnDraw of MFC
- the difference of retain and assign
- D3D Intro - Difference of D3D and D3DX
- the difference of heap and stack
- the difference of real and fake fingerprint
- Function Names as Strings,difference between _Function_ and _PRETTY_FUNCTION
- 当你发现这些你有了,说明你开始成熟了
- ARM资料网站
- VB.NET 串口访问之四(绝密级)
- C/C++编码风格自动检查工具--nsiqcppstyle使用手册--中文版
- c# 含进度条 海量数据迁移
- Difference of Function and Sub
- 11.09.25 ~ 11.10.01
- excel
- Config the Network in Linux
- 搜索1Google的高级搜索技巧
- 污点修复工具
- Linux设备模型浅析之固件篇
- 关于setContentPane()和getContentPane()的应用
- 部署nexus私服