Computer Science Canada mouseover loop problem |
Author: | beedub [ Thu May 06, 2004 10:40 am ] | ||
Post subject: | mouseover loop problem | ||
i tried making a menu program with no GUI, im having some trouble with using 'get' statements. When the button is pressed i cant use a get statement without the program stopping and having some sort of error. heres my program. ty
|
Author: | Dan [ Thu May 06, 2004 4:05 pm ] |
Post subject: | |
to do input that is non-blocking uses hasch: if hasch then getch(c) end if this will only input a char if there is one to input and will not stop the progame. there is also some other input methods that are non-blocking but they only work with turing 4.x, more can be found out about them in the turing refercen. |
Author: | beedub [ Thu May 06, 2004 5:18 pm ] |
Post subject: | |
how would the code go. for example in the "play" area? |
Author: | beedub [ Sun May 09, 2004 1:28 pm ] |
Post subject: | |
any1? |
Author: | Dan [ Sun May 09, 2004 3:37 pm ] |
Post subject: | |
i am a litte confiused about what u are trying to inpiut. What is it that u whont to input in the var ans4? |
Author: | beedub [ Sun May 09, 2004 5:06 pm ] |
Post subject: | |
yea, well, im going to need to input numerous of other variables its just, im testing with that 1. |
Author: | Dan [ Sun May 09, 2004 11:10 pm ] |
Post subject: | |
well it makes a diffrence on how to input it. if it is just one char long then u can easly uses the hasch/getch method to get a letter, number or keystrok. But if u whont to get a hole word of a number that is >=10 then u will have to make a method of inputing more then one char using getch/hasch. |
Author: | beedub [ Mon May 10, 2004 10:47 am ] |
Post subject: | |
well, lets say its at a max of 3 chars long |