11-18-2006, 02:42 AM
Subs and functions are like gosubs, but you can send them variables. They operate in a different "box", so their variables can be named the same as variables in the main program and the main vars won't be affected. You can, however, set variables as GLOBAL so they can be accessed/changed from subs as well as the main program.
In the beginning, there is darkness â the emptiness of a matrix waiting for the light. Then a single photon flares into existence. Then another. Soon, thousands more. Optronic pathways connect, subroutines emerge from the chaos, and a holographic consciousness is born." -The Doctor