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

Username:   Password: 
 RegisterRegister   
 buttons
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Insectoid




PostPosted: Sun Oct 27, 2013 7:31 pm   Post subject: RE:buttons

It means you're trying to declare a procedure inside a loop, if statement, or another procedure.

code:
%bad!
loop
    procedure foo
    end foo
end loop

%bad!
for x : 1..5
    procedure bar
    end bar
end for

%bad!
procedure baz
    procedure bleh
    end bleh
end baz

%good!
procedure good
end good
Sponsor
Sponsor
Sponsor
sponsor
hgrad98




PostPosted: Sun Oct 27, 2013 7:41 pm   Post subject: RE:buttons

those are the only errors. everything else is fine. can someone please tell me what that error means?
hgrad98




PostPosted: Sun Oct 27, 2013 7:57 pm   Post subject: RE:buttons

ok. so i cant have the whole thing loop, and work with the buttons?
hgrad98




PostPosted: Sun Oct 27, 2013 7:59 pm   Post subject: RE:buttons

it doesnt work without the loops
Nathan4102




PostPosted: Sun Oct 27, 2013 8:03 pm   Post subject: RE:buttons

Don't loop your whole program. Instead, just loop your GUI.ProcessEvent, and anything else you need.
hgrad98




PostPosted: Sun Oct 27, 2013 8:08 pm   Post subject: RE:buttons

but i had to make the program so that the user could run the program over again without having to actually click on "run" on the "editing page" so i used a big loop. and if i take that away (already tried) nothing works. it finishes the program right away
hgrad98




PostPosted: Sun Oct 27, 2013 8:21 pm   Post subject: RE:buttons

it only reruns the type of quiz they just took. it doesn't let them choose a different type. Sad
Raknarg




PostPosted: Sun Oct 27, 2013 8:27 pm   Post subject: RE:buttons

You can loop your loop.
Sponsor
Sponsor
Sponsor
sponsor
hgrad98




PostPosted: Sun Oct 27, 2013 8:28 pm   Post subject: RE:buttons

Ok ! finally it works!!!!! but the rerun is messed up.
hgrad98




PostPosted: Sun Oct 27, 2013 8:29 pm   Post subject: RE:buttons

and when you select a category, the buttons dont dissapear
hgrad98




PostPosted: Mon Oct 28, 2013 3:51 pm   Post subject: RE:buttons

ok i got them to dissapear after the selection. now i just have to make it so they could retry it.
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 2 of 2  [ 26 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: