16-10-2006, 03:46 PM
Congradulations, you managed to needless slow down and obfuscate the most simple form of math. :lol: :wink:
Though learning how to use functions appropriate is a pretty good thing. Just keep in mind that if you have:
You need to define what type of format it is working in as MyFunc will be handled as a variable. In your example, you are making "Add" a variant (default variable format of a variable without a specified format).
Would make Add return a long.
Sorry, just wanted to point that out in case you didn't know. :wink:
Though learning how to use functions appropriate is a pretty good thing. Just keep in mind that if you have:
Code:
Public Function MyFunc()You need to define what type of format it is working in as MyFunc will be handled as a variable. In your example, you are making "Add" a variant (default variable format of a variable without a specified format).
Code:
Public Function MyFunc() As LongWould make Add return a long.
Sorry, just wanted to point that out in case you didn't know. :wink:
