Thanks for the welcome.
Another question that may seem silly, are the function keys usable just that same as all other keys?
How do i tell QBasic to begin another SUB on the press of F1 for example?
Thanks for your help
Using the function keys
-
- Veteran
- Posts: 109
- Joined: Thu Feb 10, 2005 12:38 pm
to get all key codes check this tutorial http://www.petesqbsite.com/sections/tut ... ycodes.txt
but this should work
but this should work
Code: Select all
key$=""
do
key$=inkey$
loop until key$<>""
if key$=CHR$(0) + CHR$(59) then CALL yoursub
Re: Using the function keys
there are two ways to create a SUB or FUNCTION,Bobby227 wrote:how do i tell QBasic to begin another SUB on the press of F1 for example?
(A) using the menu bar you would touch Alt, E, S.
(B) just writing a line in the editor this way
SUB yourname (parameter)
and then just press Enter.
to go in and out the SUBs and FUNCTIONs press F2.