Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

mouse

i am kinda new at basic, anyone know how to get it so when u push spacebar the program closes, like at the end, instead of it closing automatically?


Comments

  • Sure! To end the program with a space bar key:


    do

    a$=inkey$

    if a$=chr$(32) then

    print "Space Bar has been pressed. Exiting program."

    end

    end if

    loop


    Check out the ASCII reference in yer help file for more key codes.


    VyroIngo


Sign In or Register to comment.