Computer Science Canada Ask Key Value of Enter |
Author: | Seguin [ Thu Apr 26, 2007 8:03 am ] |
Post subject: | Ask Key Value of Enter |
Hey, ![]() ok so my teacher shot me a whole bunch of question to answer and i need to know something about the "Ask key value of enter" and he gave me some code for example: CODE setscreen ("noecho") loop getch (answer) Font.Draw (answer, x) answer 1:= answer1+answer x:=x+13 exitwhen answer= chr (ENTER) end loop I hope someone can explain it better to me cuz I don't get what it means. ![]() |
Author: | Seguin [ Thu Apr 26, 2007 8:09 am ] |
Post subject: | RE:Ask Key Value of Enter |
sry its ASCII or enter |
Author: | ericfourfour [ Thu Apr 26, 2007 2:19 pm ] |
Post subject: | RE:Ask Key Value of Enter |
The character for enter is '\n' or KEY_ENTER. |
Author: | richcash [ Thu Apr 26, 2007 3:03 pm ] |
Post subject: | Re: Ask Key Value of Enter |
Or you can use chr (10). |
Author: | Seguin [ Mon Apr 30, 2007 12:40 pm ] |
Post subject: | Re: Ask Key Value of Enter |
Alright thank you its what i was looking for! Jess ![]() |