Search found 166 matches

by Dr_Davenstein
Mon May 02, 2016 3:09 am
Forum: Off Topic
Topic: Hello.
Replies: 1
Views: 4203

Hello.

Is anyone currently using QBasic? I was just curious. I did a few searches and it seems to have made a bit of a comeback, in some sense.
I'm making this, although it isn't QB. I thought I might post it anyway.
by Dr_Davenstein
Sat Sep 08, 2007 2:39 am
Forum: QBasic / QuickBasic related
Topic: Qbasic slow execution speed
Replies: 11
Views: 9219

There is also a program by Plasma, called EMS Magic. Check out http://phatcode.net for a download. I'm not sure if it will help or not, but it's worth a shot. He didn't write that program for nothing ya know! :p As for porting it to FreeBASIC, sure it will be a lot faster and compatible with more ...
by Dr_Davenstein
Sun Aug 12, 2007 10:59 pm
Forum: QBasic / QuickBasic related
Topic: Story-driven Baloon Fight with guns :|
Replies: 13
Views: 4859

I missed that somehow. Thanks Mac. ;)
by Dr_Davenstein
Sun Aug 12, 2007 7:36 am
Forum: QBasic / QuickBasic related
Topic: Story-driven Baloon Fight with guns :|
Replies: 13
Views: 4859

Hi. I can't run QB on this pc, so I'd like to try it wth a different compiler, if you don't mind. Can you post it as a text file somewhere? You can always use this site to post your code:

http://copy-pasta.com/

Thanks and have fun! :D
by Dr_Davenstein
Sun Feb 11, 2007 2:04 am
Forum: QBasic / QuickBasic related
Topic: Qbasic game controls
Replies: 6
Views: 3178

Ralph, that link leads to this thread. Was that an accident?
by Dr_Davenstein
Sat Jan 20, 2007 7:05 am
Forum: QBasic / QuickBasic related
Topic: Use of GOTO
Replies: 14
Views: 5769

Hmmm... interesting. That could mean one of two things. Either FB is returning the stack space along on top of the ram when you call Fre(-1), or it's a bug. I'll have to ask around about this. Thanks, Ralph! :D
by Dr_Davenstein
Sat Jan 20, 2007 5:33 am
Forum: QBasic / QuickBasic related
Topic: Use of GOTO
Replies: 14
Views: 5769

Oops! Just remove the Byval keywords. I forgot that QB doesn't support Byval/Byref. Sorry about that. :oops:

I'm glad you solved your other problem, but I wish you had an explanation! Maybe you had too many applications running before or something? :lol:
by Dr_Davenstein
Sat Jan 20, 2007 12:01 am
Forum: QBasic / QuickBasic related
Topic: Use of GOTO
Replies: 14
Views: 5769

Sure. ;)

This is an example of what I mean by heavy recursion. See how the floodfill sub calls itself? It overloads the stack very, very fast. Try increasing the radius of the circle. It should run in QB, but I can't be positive. I wrote the code using FB with the -lang QB switch. Please tell me if ...
by Dr_Davenstein
Fri Jan 19, 2007 9:02 am
Forum: QBasic / QuickBasic related
Topic: Use of GOTO
Replies: 14
Views: 5769

No. EXIT SUB will not generate a stack overflow error. In many cases, it can even stop you from runing into that problem. I wouldn't suggest trying to go heavy on recursion with QB though. It runs out of stack space very quickly, for the standards of today.
by Dr_Davenstein
Fri Jan 19, 2007 8:52 am
Forum: QBasic / QuickBasic related
Topic: I need a sorting algorythm
Replies: 6
Views: 2959

Does QB allow you to swap whole UDT's of the same TYPE? I can't remember. That would be the best approach, in my opinion. If that doesn't work, I would definetly go with buff1. ;)
by Dr_Davenstein
Sat Dec 30, 2006 6:41 am
Forum: QBasic / QuickBasic related
Topic: I need a sorting algorythm
Replies: 6
Views: 2959

Hmmm... Do you mean you have different fields stored in a linear fashion within the same array?

Anyway, the easiest type of sort to learn, is the bubble sort. It's basically like this...



Dim Array(20) As Integer

For i = LBound(Array) To UBound(Array)
y=y+1
Array(i) = Int(Rnd*1000)
Print ...
by Dr_Davenstein
Mon Oct 03, 2005 8:50 am
Forum: QBasic / QuickBasic related
Topic: First program problem.
Replies: 3
Views: 1909

Yeah, the sites changed since then. Thanks for the heads up! The link in my sig should work now. :D
by Dr_Davenstein
Sun Oct 02, 2005 9:28 pm
Forum: QBasic / QuickBasic related
Topic: First program problem.
Replies: 3
Views: 1909

Try this site...
http://www.ojodepez-fanzine.net/network/qbdl/

Id go for QB4.5, if it was me. ;)
by Dr_Davenstein
Fri Aug 19, 2005 7:46 am
Forum: QBasic / QuickBasic related
Topic: compiler problem - "expression too complex"
Replies: 5
Views: 2584

I'm almost certain that Buff is right. However, you should be able to compile it from the command line. Does anyone have a copy of the command line options lying around? I don't have QB on this pc. :?
by Dr_Davenstein
Fri Aug 19, 2005 7:40 am
Forum: QBasic / QuickBasic related
Topic: Array Issues
Replies: 2
Views: 1829

I wouldn't reccomend using DATA statements on the fly, but it sounds like you could just use RESTORE...

Code: Select all

Do
    RESTORE MyData

    For i = 1 to 2
        Read Temp
        Print Temp
    Next
Loop Until Inkey$=Chr$(27)

MyData:
DATA 25338
DATA 17475
See how it works? ;)