Search found 48 matches

by Mac
Mon Apr 14, 2008 5:19 pm
Forum: QBasic / QuickBasic related
Topic: SCREEN Navigation??
Replies: 13
Views: 5869

Any more questions for this thread?

You get all the help you needed?
by Mac
Thu Apr 10, 2008 12:29 pm
Forum: QBasic / QuickBasic related
Topic: SCREEN Navigation??
Replies: 13
Views: 5869

Well, that is strange "data" to read from a file.

A "flat file" is a file that has no structure. Most
files are like that.



A typical file has ".dat" at the end such as "States.dat" but it doesn't have to. I could name it "States.exe" if I wanted to. Maybe I do that to trick snoopy sibling. If it ...
by Mac
Thu Mar 27, 2008 11:28 am
Forum: QBasic / QuickBasic related
Topic: Windows and older dos quickbasic code
Replies: 3
Views: 3162

Re: Windows and older dos quickbasic code

running dos is getting more difficult with each new computer bought.

Sad, but true. Microsoft obviously plans the day when DOS cannot be used at all. They want to be Apple.

I chose the path of not buying new computers. Have 7 year old Windows NT on a DELL with 500 MHZ and a 2GIG C-Drive, 10GIG E ...
by Mac
Thu Mar 27, 2008 11:14 am
Forum: QBasic / QuickBasic related
Topic: Qbasic slow execution speed
Replies: 11
Views: 9230

Ralph's our main guy here.

Mac
by Mac
Thu Mar 27, 2008 11:11 am
Forum: QBasic / QuickBasic related
Topic: Output to parallel port
Replies: 12
Views: 6241

Definitely use QB4.5

You must be the last (only) person who even has a copy of 3.0

(I talk - and I only use QB 1.0 - The version supplied free by Microsoft with my Windows-NT system)

Mac
by Mac
Thu Mar 20, 2008 8:56 am
Forum: QBasic / QuickBasic related
Topic: Repeating Random Numbers
Replies: 2
Views: 2610

Re: Repeating Random Numbers

If the sequence were 55, 75, 33, 83, 18..... I would like the output to be this sequence printed 3 times using the InitSeed.
CLS
RANDOMIZE TIMER
DIM InitSeed AS DOUBLE: InitSeed = -RND
PRINT "Three times, you say? OK:"
y = RND(InitSeed)
FOR i = 1 TO 10: PRINT INT(100 * RND); : NEXT i: PRINT
y ...
by Mac
Fri Mar 07, 2008 12:55 pm
Forum: QBasic / QuickBasic related
Topic: open/read/write to a flat file
Replies: 3
Views: 3218

Mac's code will do what you need, but, I just thught you should know the above.

Good detail to point out, Ralph.

As I read my post again, I found that I had a bug: I used eof(1) instead of required eof(fh). Also had a line input #1, l$. Just luck the program ran. Here is debugged:
CLS
DIM fh AS ...
by Mac
Thu Mar 06, 2008 8:32 pm
Forum: QBasic / QuickBasic related
Topic: open/read/write to a flat file
Replies: 3
Views: 3218

Re: open/read/write to a flat file

write/read to a flat file.

For a flat file, you need OUTPUT, not RANDOM.

Mac

CLS
DIM fh AS INTEGER
fh = FREEFILE
PRINT "Start writing"
OPEN "PLANTS.DAT" FOR OUTPUT AS #fh
PRINT #fh, "100:PLANT1"
PRINT #fh, "200:PLANT2"
CLOSE #fh
PRINT "Finished writing"
fh = FREEFILE
OPEN "PLANTS.DAT" FOR ...
by Mac
Thu Mar 06, 2008 11:58 am
Forum: QBasic / QuickBasic related
Topic: Program Binding, will not run
Replies: 1
Views: 2145

Re: Program Binding, will not run

biomech1989!! wrote:programs have run successfully in the past
So you have some EXE's that you have run, but without any
change to your system at all, they now don't run?

Can't be. You changed something - hopefully you didn't "upgrade"
to Vista thereby ruining your system for QBasic.

Mac
by Mac
Sun Feb 24, 2008 3:07 am
Forum: QBasic / QuickBasic related
Topic: Argument passing fails in Win 2000
Replies: 1
Views: 1983

Re: Argument passing fails in Win 2000

DaneBrooke wrote:Win 2000 is not listed as a supported language
It's not clear what your question is.
by Mac
Tue Jan 22, 2008 7:21 am
Forum: QBasic / QuickBasic related
Topic: QBTree Data Engine
Replies: 6
Views: 3539

Re: QBTree by Cornel Huth

DDastardly71 wrote:Let me know where you want them sent.
ROFL

Aid was requested on Oct 02, 2003.

I imagine the OP has given up by now.

Mac
by Mac
Sun Nov 18, 2007 9:47 pm
Forum: QBasic / QuickBasic related
Topic: qb 4.5 mouse program
Replies: 18
Views: 11014

I created my shortcut to qb.exe

Glad that works for you.

I am always working from the DOS prompt, so usually I am entering

C>\QBasic > NOTEPAD Z.BAS
(where I edit the program, as I hate the IDE Editor)

After saving, I do
C>\QBasic > QBasic /RUN Z
(which runs it in the IDE as if it were ...
by Mac
Sat Nov 17, 2007 5:41 pm
Forum: QBasic / QuickBasic related
Topic: qb 4.5 mouse program
Replies: 18
Views: 11014

pebe wrote:Is that the QB that was supplied with MS DOS - with no compiler?
Yes. Came bundled in with my WindowsNT.

Mac
by Mac
Sat Nov 17, 2007 5:40 pm
Forum: QBasic / QuickBasic related
Topic: qb 4.5 mouse program
Replies: 18
Views: 11014

Ralph wrote:Pepe has a valid question, regarding your mouse program for QB 1.1 and its probable compatability with 4.5
Heh, I must have mumbled when I said I just tested it with 4.5 and it works perfectly.

MOUSE ROUTINE IN MY QB1.0 PROGRAM WORKS THE SAME IN QB4.5. NO DIFFERENCE. 100% COMPATIBLE

Mac
by Mac
Sat Nov 17, 2007 4:45 pm
Forum: QBasic / QuickBasic related
Topic: qb 4.5 mouse program
Replies: 18
Views: 11014

I have never used QB1.0 or 1.1

You mean the REAL QBasic?? You can download it at
http://www.network54.com/Realm/QBZips/QBZips.html

Anyway, I just tried it with QB4.5 and it works there, too. But if a person only used QB4.5, then it makes sense to use the built-in mouse driver, rather than load a ...