Computer Science Canada how can i choose a circle and then colour with this code? |
Author: | bark52 [ Wed Jun 01, 2005 10:43 am ] | ||
Post subject: | how can i choose a circle and then colour with this code? | ||
I have a program for school and this is what I have so far. I need to be able to choose a square or circle and then choose a colour for that choice. This is my code:
Any help on how to do this? |
Author: | neufelni [ Wed Jun 01, 2005 11:27 am ] |
Post subject: | |
You are posting in the wrong forum. This is Source Code, not Help. |
Author: | Jorbalax [ Wed Jun 01, 2005 4:58 pm ] |
Post subject: | |
Also, you haven't really indicated what the problem is...we can't help you if we don't know what's wrong. [EDIT] oops, MAJOR brainfart there, didn't even read the title! My suggestion would be to use an 'and' statement, and include the shape variable in the if statement, ie if c=1 and shape=1 then code end if if c=1 and shape=2 then code end if You'll have to make more if statements, but it works. |