Posted: Wed Jul 20, 2011 3:40 pm Post subject: RE:Functions and Procedures
name : string is a variable. It's akin to a virtual wallet. If you greet("George"), you're filling your name wallet with the value "George". So when you put "Hello", name, Turing opens the name wallet and voila, the name George is inside.
Sponsor Sponsor
IamPillzbury
Posted: Mon Apr 20, 2015 10:26 am Post subject: RE:Functions and Procedures
Is there a certain command to exit the procedure?
I have a procedure that prints out some text and I want it to exit the procedure when a certain button is pressed
Insectoid
Posted: Mon Apr 20, 2015 11:25 am Post subject: RE:Functions and Procedures
A procedure is just like your main program (sort of). How do you make a program end? You just run out of code to run. When there's no more code, the program ends. Same deal with procedures. When there's no more code to run in it, it ends.
Remember that when inside a procedure, no code outside the procedure will run. This means your button code has to be inside the procedure as well as the text.