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

Username:   Password: 
 RegisterRegister   
 Looping Procedure's
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Dazzle




PostPosted: Fri Feb 22, 2013 9:45 am   Post subject: Looping Procedure's

What is it you are trying to achieve?
im trying to loop procedures if its possible


What is the problem you are having?
it wont work


Describe what you have tried to solve this problem
ive searched for a while but couldent find anything

Turing:


%Title Screen
procedure menu
    var plae := GUI.CreateButton (240, 31, 0, "Insane", GameInsane)
    var plan := GUI.CreateButton (240, 69, 0, "Hard  ", GameHard)
    var plah := GUI.CreateButton (240, 107, 0, "Normal", GameNormal)
    var plai := GUI.CreateButton (240, 145, 0, "Easy  ", GameEasy)
    Draw.Text ("Number Guess", 120, 517, font4, red)
    Draw.Text ("Your Easy HighScore is:", 325, 9, font5, black)
    Draw.Text ("Your Normal HighScore is:", 325, 34, font5, black)
    Draw.Text ("Your Hard HighScore is:", 325, 60, font5, black)
    Draw.Text ("Your Insane HighScore is:", 325, 87, font5, black)
end menu

menu

loop
    exit when GUI.ProcessEvent
end loop

loop
    exit when play_agan = "no"
    menu
end loop




Please specify what version of Turing you are using
4.0.3
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Fri Feb 22, 2013 3:13 pm   Post subject: RE:Looping Procedure\'s

It's no clear what you are asking, but...
code:

loop
    exit when GUI.ProcessEvent
end loop

when will this loop exit, so that your next loop can start?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: