Search found 8 matches

by bigbluehacker
Tue Jul 21, 2009 3:35 am
Forum: QBasic / QuickBasic related
Topic: 4.5 vs 7.1
Replies: 6
Views: 6817

Thanks for the reply...I suspected there were more capabilities in 7.1 than in 4.5...My problem will be that I can't find a comprehensive manual for 7.1...I have a 600-page manual for 4.5 and use it very often when I try something I haven't done before. You mentioned a manual by MS...where can I ...
by bigbluehacker
Sun Jun 28, 2009 11:33 am
Forum: QBasic / QuickBasic related
Topic: 4.5 vs 7.1
Replies: 6
Views: 6817

4.5 vs 7.1

I have been using QB 4.5 for several years and it's great. I also have QBX 7.1 which I have only played with once. What are advantages (and disadvantages) of 7.1 over 4.5? Would I be better learning and using 7.1 for massive number crunching?
by bigbluehacker
Wed Jan 17, 2007 2:01 am
Forum: QBasic / QuickBasic related
Topic: Use of GOTO
Replies: 14
Views: 5769

Thanks for your help. It does the job perfectly and even allowed me to clear the screen, print the error message and reprint the prompts.

Before I get too deep in my rewrite, I have another question: Does EXIT SUB risk generating an out of stack space error message if it is called many times and ...
by bigbluehacker
Mon Jan 08, 2007 2:24 am
Forum: QBasic / QuickBasic related
Topic: Use of GOTO
Replies: 14
Views: 5769

You are ABSOLUTELY CORRECT in every regard concerning input and inkey$. My code actually says "press y or n and enter". And it must be lower case and one character or the program will erase the screen and reprint the prompt. The original erased the screen and printed "ERROR" then printed the prompt ...
by bigbluehacker
Sun Jan 07, 2007 2:08 am
Forum: QBasic / QuickBasic related
Topic: Use of GOTO
Replies: 14
Views: 5769

Thanks for your help. You got me thinking in the right direction. By using a DO...LOOP and INPUT instead of INKEY$, I can make the routine echo the wrong key press, then clear the screen and reprint the original prompts.


DO UNTIL alldigit$ = "y" or alldigit$ = "n"
CLS: PRINT "Do you want to use ...
by bigbluehacker
Sat Jan 06, 2007 12:27 am
Forum: QBasic / QuickBasic related
Topic: Use of GOTO
Replies: 14
Views: 5769

Use of GOTO

I am trying to rewrite a program with hundreds of GOTOs without using even one. But I quickly ran into a problem.


alldigit: PRINT "Do you want to use all digits?"
INPUT "Press Y or N and ENTER", alldigit$
IF alldigit$ <> "Y" and alldigit$ <> "N" THEN PRINT "ERROR":GOTO alldigit

How can I avoid ...
by bigbluehacker
Sat Jan 06, 2007 12:00 am
Forum: QBasic / QuickBasic related
Topic: I need a sorting algorythm
Replies: 6
Views: 2959

Thank you for your reply.

I have tried to use "bubble" and other simple sorts and can't get them to work correctly with 2 or 3 dimensional arrays. If DIM Array(1 to 20,1 to 20) AS LONG I can sort elements in one of the dimensions, but the other dimension remains unaltered.

If I dimension the array ...
by bigbluehacker
Wed Nov 08, 2006 2:17 am
Forum: QBasic / QuickBasic related
Topic: I need a sorting algorythm
Replies: 6
Views: 2959

I need a sorting algorythm

I need an algorythm to sort one field of an array while preserving the relationship with all other fields on the same line. For example:

1 Man-O-War $3,967,845
2 Swaps $2,897,136
3 Secretariat $10,145,873
4 Sunday Silence $265,972

These are fictional examples; I need to sort winnings by number ...