
-----------------------------------
Seguin
Thu Apr 26, 2007 8:03 am

Ask Key Value of Enter
-----------------------------------
Hey,  :P 
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.
 8-)

-----------------------------------
Seguin
Thu Apr 26, 2007 8:09 am

RE:Ask Key Value of Enter
-----------------------------------
sry its ASCII or enter

-----------------------------------
ericfourfour
Thu Apr 26, 2007 2:19 pm

RE:Ask Key Value of Enter
-----------------------------------
The character for enter is '\n' or KEY_ENTER.

-----------------------------------
richcash
Thu Apr 26, 2007 3:03 pm

Re: Ask Key Value of Enter
-----------------------------------
Or you can use chr (10).

-----------------------------------
Seguin
Mon Apr 30, 2007 12:40 pm

Re: Ask Key Value of Enter
-----------------------------------
Alright thank you its what i was looking for!

Jess :)
