Question:

Enter key ascii code

by Guest471  |  earlier

0 LIKES UnLike

 Tags:

   Report

3 ANSWERS


  1. enter


  2. .

  3. ASCII code for ENTER (RETURN) key is 13. But in QBASIC it should be used with CHR$(n).Inkey$ is mostly use in loop. Like as:

    ' Example
    CLS
    PRINT "Press ENTER to end..."
    DO UNTIL INKEY$=chr$(13)
    PRINT "QBASIC"
    LOOP
    END

    The above program will keep on printing text "QBASIC" until the ENTER key is pressed.


                                               - Dilip Raj Baral
                                                 Email : theloverspy@yahoo.com
                                                 URL : http://theloverspy.hi5.com
You're reading: Enter key ascii code

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.