Author |
Message |
shorthair
![](http://www.members.shaw.ca/rfolz/domo-kun.jpg)
|
Posted: Tue Jan 20, 2004 3:03 pm Post subject: Ord finder |
|
|
Ord finder , good for games ,whe n you need to knwo a key value
code: |
setscreen("noecho")
var inkey : string (1)
loop
loop
exit when hasch
end loop
getch (inkey)
put ord (inkey)
exit when ord (inkey) = 27
end loop
|
GOT YA |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
|
|
|
![](images/spacer.gif) |
sport
![](http://www.members.shaw.ca/rfolz/e17661eqn7y.jpg)
|
Posted: Tue Jan 20, 2004 10:40 pm Post subject: (No subject) |
|
|
it is pretty useful for the user controls when coding. |
|
|
|
|
![](images/spacer.gif) |
Maverick
![](http://server2.uploadit.org/files/gregdilts-bleh2.jpg)
|
Posted: Tue Jan 20, 2004 11:00 pm Post subject: (No subject) |
|
|
Hey I like that. Very useful
+Bits |
|
|
|
|
![](images/spacer.gif) |
McKenzie
![](http://www.wizards.com/global/images/swtcg_article_27_pic3_en.gif)
|
Posted: Tue Jan 20, 2004 11:01 pm Post subject: (No subject) |
|
|
Tony is right (as usual)
all the loop will do is wait for a key to be pressed (does not process it), well... getch already does that. |
|
|
|
|
![](images/spacer.gif) |
shorthair
![](http://www.members.shaw.ca/rfolz/domo-kun.jpg)
|
Posted: Wed Jan 21, 2004 6:14 am Post subject: (No subject) |
|
|
Thanks for the feedback , i see what your saying with the loop now , im sure that i extracted this whole thing from a bigger program, im not sure why i had to loop in there , i was jsut going through some of my grade 10 files last night and came accross it |
|
|
|
|
![](images/spacer.gif) |
|