Qbasicnews.com

Full Version: A *minor* question about the QBASIC IDE
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I was just wondering if there were any other typing shotcuts like this
Code:
? "Hello World"
is translated to
Code:
PRINT "Hello World"
As I'm trying to be as lazy as possable when typing Smile
I don't know of any others like it... "?" isn't listed in the help system...

However, I always use pgup, pgdown, and a bit of END and HOME.

You can also copy and paste with double-keys... but I always forget 'em...

Anyways, QB has a giant shortcut list in the shortcut menu. Impossible to remember them all......
It is very handy to use keys. You can always use CTRL+arrow keys to move word by word instead of char by char. CTRL+HOME brings you to the beginning of your code (SUB, FUNCTION or whatever), and CTRL+END to the end. You can select a block using SHIFT+arrow keys, then you can copy it into the clipboard using CTRL+INSTERT and you can paste it with SHIFT+INSERT. My coding style is a copy/paste marvel Tongue.

"?" => PRINT is some kinda legacy translation. ? has been used as a short of print since BASIC was invented, and maybe M$ designers thought that it was OK to leave it for ol'time BASIC coders. AFAIK, there aren't any shortcuts (well, you don't have to use "LET" or "REM", that can be considered a shortcut).

Also, you can type "ENDIF" and the IDE will translate it to "END IF". I always do that.
Copying code r0xors. Helps your brain not explode from TMI.

But computer science has gotten so pathetically stupid that I was asked what "car" in LISP did in a multiple choice Q. Of course, I didn't know, since I never used it. But of course, I should have known, because "car" is the foundation of LISP and you can't make a program without it, the question was specially made to see if we were copying code and turning it in as our own, blahblahblah......
Lol. I do all my LISP coding using CAR, CDR, CADR, CAAR, CDAR and CDDR. (y'know, (CAAR = (CAR (CAR, (CADR = (CAR (CDR and a twirl like that).
AtariBASIC supported ? instead of PRINT. In those times, where the total memory available was 48kb (that's it, 64kb minus the DOS and the BASIC interpreter) even the most "insignificant" byte was precious. :wink:
you should check out SOURCEEDIT, its a great program for coding QB in windows ide. u can do all the normal CTRL+C ,V and even build your own macros for QB.

http://sourceedit.com

100% free w/ no nag at all. ever since i started using in for qb, i could never go back to the dos ide.
Wow, na_th_an...I thought nobody knew the endif trick but me! :wink:
You're crazy...I think nearly everybody knows this trick
That just goes to show how conceited I am. :wink:
Pages: 1 2