QBasic Tutorial 37 - Passing Values To Subs - QB64

Page Navigation

Main Profile

At A Glance

QBasic Tutorial 37 - Passing Values To Subs - QB64

http://www.SchoolFreeware.comWhen we made subs in the previous tutorials, we needed to use SHARED when using the same variable within a sub. If we do not wish to make shared variables we can pass the values to the sub. The data type(s) must match the values being passed to the sub and picked up from the sub.