Search found 98 matches

by Zim
Mon Jan 23, 2006 12:51 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: help on limiting keys
Replies: 29
Views: 49592

Think of the keyboard buffer as a queue..
Indeed!
I've used:

Code: Select all

For i=1 to 16
dummy=inkey$
next i
Just to make sure the keyboard buffer is EMPTY!
by Zim
Fri Jan 20, 2006 1:00 pm
Forum: General Discussion
Topic: Warning re SHELL "DIR filespec > tempfile"
Replies: 3
Views: 5390

I did that very thing in a program I wrote in QB 3 about 6 years ago and ran under Win NT 4.

Also, you can use "DIRCMD= options" to force DIR into a particular format all the time. Then you can put that command in the AutoExec.Bat file.
by Zim
Fri Jan 20, 2006 12:55 pm
Forum: General Discussion
Topic: subscript out of range
Replies: 2
Views: 6465

Arrays

It means you have an array and it has a certain dimension (the maximum number of elements in the array) and something in your program is trying to use or assign an element beyond or larger than that. For example: DIM x(25) y=x(27)=3 would generate such an error. Sometimes a misplaced parenthesis &qu...
by Zim
Fri Jan 20, 2006 12:48 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: print Qbasic output by BubbleJet printer
Replies: 13
Views: 27778

NotePad?

You can still open the file in NotePad and print it from Windows.
by Zim
Fri Jan 20, 2006 12:45 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: help on limiting keys
Replies: 29
Views: 49592

Try this

I use

Code: Select all

Do
k$=inkey$
loop until len(k$)
It pops out of the loop when you press anything. Then you can test what was pressed. For example, if k$=chr$(27) then the Esc key was pressed.
by Zim
Thu Jan 19, 2006 12:29 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Mouse Programming difficulties on WINXP
Replies: 12
Views: 22863

Re: QB on Win XP

I still use QB 3.0 and it has worked fine for me in every operating system that MicroSoft has put out including 3.1, 95, 98, NT3.5, NT4, 2000, and XP... I take that back. I have a QB 3.0 text program that writes to line 25. If I start the program from a shortcut and the program starts in a window, ...
by Zim
Tue Jan 17, 2006 2:17 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Linking two programs
Replies: 2
Views: 4293

Linking Programs

In addition to Shell, you can also use the Chain statement, or the Run statement. Of course, this only works if you have the source for each program and you can modify and re-compile them. "Shell" will simply hold the current program in memory and allow the operating system to begin execut...
by Zim
Mon Jan 16, 2006 12:40 pm
Forum: News and Announcements
Topic: Fastest (pure QB) PUT routine?
Replies: 16
Views: 39227

QB is slow

Qb is slow. OK, I suppose you could say that. I always assumed C/C++ was faster. I think it depends on a lot of things. I know most of you do graphics/game programming. Not me; I just crunch numbers, and folks, that's all done in the FPU. I saw an article in PC Magazine back in the 80's. The author ...
by Zim
Mon Jan 16, 2006 12:05 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Getting QB 4.5 to run on my new 'puter.
Replies: 21
Views: 46434

Better than Paint

If you're looking for something just a tiny bit better than Paint, how about PhotoEd, the photo editor that comes with MS-Office? I believe the executable is Photoed.exe.
by Zim
Mon Jan 16, 2006 12:01 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: keyboard pushy thingy?
Replies: 7
Views: 13157

Key thingy

Are we talking about the typematic rate and delay here?

In DOS you use the MODE command to adjust that. In windows, there's a control panel item for that.
by Zim
Fri Jan 13, 2006 11:58 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Getting QB 4.5 to run on my new 'puter.
Replies: 21
Views: 46434

Image Editing

My son likes the GIMP.
by Zim
Fri Jan 13, 2006 11:57 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Mouse Programming difficulties on WINXP
Replies: 12
Views: 22863

QB on Win XP

I still use QB 3.0 and it has worked fine for me in every operating system that MicroSoft has put out including 3.1, 95, 98, NT3.5, NT4, 2000, and XP. I haven't tried it on ME. The computer I'm using now is XP and it works fine from a Command Prompt. Mind you, I'm not doing anything with the mouse, ...
by Zim
Wed Jan 11, 2006 12:47 pm
Forum: General Discussion
Topic: DOS/QB Chess
Replies: 5
Views: 10481

Nuts, only spam

...and here, I thought someone found a QB chess game... Nuts!
by Zim
Tue Jan 10, 2006 5:01 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with program
Replies: 4
Views: 6425

Case Structure

Oh, and... you can also do it with case structure like this: select case score case is < 500 ...do low score stuff case 500 to 1000 ...do medium score stuff case is > 1000 ...do high score stuff end select Also, if you use a "case" structure that can possibly have a "no case" cas...
by Zim
Tue Jan 10, 2006 4:50 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with program
Replies: 4
Views: 6425

Less than or equal to

I always write "less than or equal to" this way:

Code: Select all

 if count <= 500 then do stuff
Either way works. I just think it looks better than =<.
by Zim
Mon Jan 09, 2006 5:13 pm
Forum: General Discussion
Topic: DOS/QB Chess
Replies: 5
Views: 10481

DOS/QB Chess

Anybody know of a good Chess program written entirely in Q/Quick BASIC? I'm talking about something with AI, you know, the computer plays chess with a person...
by Zim
Mon Jan 09, 2006 5:03 pm
Forum: General Discussion
Topic: QB Express #17 Needs Submissions!
Replies: 31
Views: 64493

3-D Tutorial

My son has an interest in learning about vectors, matrices, projections, and such for BASIC game programming. This looks like the tutorial for him!
by Zim
Mon Jan 09, 2006 12:19 pm
Forum: General Discussion
Topic: Programmers
Replies: 17
Views: 33837

For a Living...

From about 1976 until 1995 I worked for a couple of different civil engineering firms. Part of my time was spent on software for civil engineers and surveyors, modifying existing, and writing new programs. My "pride and joy" is a coordinate geometry package for surveyors written entirely i...
by Zim
Thu Jan 05, 2006 12:02 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: printing
Replies: 20
Views: 30808

Re: PrtScrn

In dos PrnScrn only worked if you loaded GRAPHICS.COM at the DOS start... In the VERY old days of DOS, PrtScrn worked without GRAPHICS.COM loaded, but that was back when CGA was the highest resolution (640x200). As QuickBASIC began to support higher resolutions, such as EGA (640x350) you needed to ...
by Zim
Wed Jan 04, 2006 12:54 pm
Forum: General Discussion
Topic: Christmahanakwanzika - What did you do?
Replies: 6
Views: 8150

Christmas

Bought a 3-in-1 machine (printer, copier, scanner) for a family present. Hey! I'm finally with the 20th century! (Now, to get with the 21st!)