Computer Science Canada Need Help with Shopping Program (GUI Interface) |
Author: | bradb [ Fri Dec 31, 2010 9:22 pm ] | ||
Post subject: | Need Help with Shopping Program (GUI Interface) | ||
Hi Am having trouble getting this program to work, I am in grade 9 and it is my first attempt to use turing What is it you are trying to achieve? <Replace all the <> with your answers/code and remove the <>> What is the problem you are having? <Answer Here> Describe what you have tried to solve this problem <Answer Here> Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) <Answer Here>
Please specify what version of Turing you are using <Answer Here> |
Author: | Tony [ Fri Dec 31, 2010 9:43 pm ] | ||
Post subject: | RE:Need Help with Shopping Program (GUI Interface) | ||
This is a pretty good start for first time using Turing. It looks like the program just gets stuck in this loop
There is no exit, it will just loop forever, checking for a button press, even though you have already drawn the next screen/page. Buttons and pages are known to be difficult to setup correctly. You have the right ideas, just have to be careful about figuring out just exactly in which loop the code is running. |
Author: | bradb [ Fri Dec 31, 2010 10:31 pm ] |
Post subject: | Re: Need Help with Shopping Program (GUI Interface) |
thanks for the help, I really appreciate it I'm not sure where to put the exit, I tried and exit right after the end if, but no luck What does an exit statement look like? thnks Grant |
Author: | Tony [ Fri Dec 31, 2010 10:39 pm ] |
Post subject: | RE:Need Help with Shopping Program (GUI Interface) |
Turing's documentation -- exit Keep in mind that when a loop exits, the code flow jumps to the "end loop" point and continues from there, _but_ the old page will still be drawn on the screen until the code gets to the drawing part. |
Author: | bradb [ Fri Dec 31, 2010 11:24 pm ] |
Post subject: | Re: Need Help with Shopping Program (GUI Interface) |
Sorry I still can't figure out what the exit statement needs to look like. My parents are trying to help me with this and they can't either. Do you have any more suggestions ![]() |
Author: | Tony [ Fri Dec 31, 2010 11:32 pm ] | ||
Post subject: | RE:Need Help with Shopping Program (GUI Interface) | ||
It will probably look something like
|
Author: | bradb [ Sat Jan 01, 2011 12:08 am ] |
Post subject: | Re: Need Help with Shopping Program (GUI Interface) |
Thank you. You have been a big help. Happy New Year! |
Author: | TokenHerbz [ Sat Jan 01, 2011 2:32 am ] | ||
Post subject: | RE:Need Help with Shopping Program (GUI Interface) | ||
could also go like
|