http://www.SchoolFreeware.comFunctions are very similar to subs with exception that functions return values back to the part of the program that called the function. Functions receive values passed by the section of the program that called the function. The functions take the values passed to it, performs a calculation or computation and returns a value.By this point you have already used functions many times. UCASE$ is a function that converts text to uppercase. UCASE$ takes a string, converts the string to uppercase and returns the uppercase string value. Other built-in functions include ABS, LOG, and INKEY$.Creating a function is very similar to creating a sub. All that is needed to create a function is to click Edit -- New Function, then, in the dialog box, type the name of the new function and click OK.
Questions about QBasic Tutorial 38 - Making A Function - QB64
Want more info about QBasic Tutorial 38 - Making A Function - QB64?
Get free advice from education experts and Noodle community members.