Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Functions and Procedures
Index -> Programming, Turing -> Turing Tutorials
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
2goto1




PostPosted: 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
Sponsor
sponsor
IamPillzbury




PostPosted: 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




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Tutorials
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 18 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: