Derek Kinney
ITT
Built in functions are valuable and convenient because they can cut down the time and energy it takes into writing the entire program repeatedly. The built-in functions work like mini programs that perform simple tasks so that you can concentrate your efforts elsewhere. As with all functions, the built-in functions return values and, optionally, accept arguments that you pass to the functions when you call the functions. This essay will list different Visual Basic’s built in functions.
VB supports many mathematical and/or numeric functions that can make calculations and other procedures very simple, as one just have to feed in the variables, and get the output after the function processes it. One such function is:
The Sqr () function. This function accepts a single argument and returns the square root of that argument. Another function that helps programmers calculate expressions is the Atn () function. This returns the argument 's arc tangent, expressed in radians. If you want to display your currency values to two decimal places with a dollar sign and commas when applicable you would use the Format() function. This returns a Variant (convertible to a String) data type formatted to look the way you need. Programmers would also use the strFormat function to format values. For example:
"Currency" Ensures that a dollar sign ($) appears before the formatted value, followed by a thousand separator so two decimal places will always show. "Fixed" Displays at least one digit before and two digits following the decimal point, with no thousands separator.
VB includes date and time functions to assist programmers with the task of recording the date and time of the program run. The Date Serial () and Time Serial () functions let you specify expressions inside their argument lists to manipulate specific date and time portion values. All VB’s built in functions calculate, manipulate strings, work with time and date
References: Gaddis, T. (2010). Starting out with programming logic & design. Boston, MA: Addison- Wesley/Pearson Education, Inc. Members Tripod. The Built-In Functions. Retrieved from http://members.tripod.com/acha_ean/vb_12_lession/vel13.htm Yang, H. (2014). VBScript Tutorials. Retrieved from http://www.herongyang.com/VBScript/Built-in-Function.html Yevo. (2008). Introduction to Visual Basic Built-In Functions. Retrieved from http://www.yevol.com/en/visualbasic/Lesson08.htm