Search found 2466 matches

by burger2227
Thu Jul 31, 2008 1:00 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Understanding code
Replies: 8
Views: 10196

No, the FUNCTION checks for that, but the code to determine X and Y, or whatever you want to call them, still needs the other code to determine the values before the Function will work properly.

It could possibly all be all done inside the Function, if you wish.

Ted
by burger2227
Wed Jul 30, 2008 10:40 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Understanding code
Replies: 8
Views: 10196

SEEMS? It is an actual Function!

NOT my SUB? LOL, I found that FUNCTION and you are correct except for the first instance in the IF statements.

Naturally, ATN can be used to compare Y/X to determine the Radian angles. Zero could create division problems too. So the first IF avoids a "Division by zero" error.

Ted
by burger2227
Wed Jul 30, 2008 12:29 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Understanding code
Replies: 8
Views: 10196

ATN2

The following code is from VB, but can be used in QB. Atn2 - Arc tangent of Y/X ' arc tangent of Y/X - returns values in all four quadrants Function Atn2(x As Double, y As Double) As Double If x = 0 Then Atn2 = Sgn(y) * 1.5707963267949 ElseIf x > 0 Then Atn2 = Atn(y / x) Else Atn2 = Atn(y / x) + 3.1...
by burger2227
Tue Jul 29, 2008 1:18 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Need help - Strange tile problem
Replies: 36
Views: 45955

I seldom use WHILE WEND loops. WHILE is not used in many other programming languages. Thus you have to rewrite them when converting from QB.
by burger2227
Sun Jul 27, 2008 3:32 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Need help - Strange tile problem
Replies: 36
Views: 45955

SEE GOTO GO

GOTO is only necessary for ON ERROR GOTO. New programmers often get in a bad habit using GOTO. They don't even bother making loops. Troubleshooting the code often becomes a confusing Task. GOTO is almost as useless as LET, but those are often the two first things that POOR teachers throw at them! I'...
by burger2227
Sun Jul 27, 2008 3:18 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: plz help me out
Replies: 9
Views: 16958

That's what you get, when somebody just writes all of the code for you.

Especially if it's wrong! Why would a CHEATER say thanks anyway? Also if the code don't work, they just cheat somewhere else..........

Ted
by burger2227
Sat Jul 26, 2008 3:28 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Need help - Strange tile problem
Replies: 36
Views: 45955

Ralph

Go back and edit the double post. Check the box that says Delete Post before it is too late to do so. Click Submit Post.

Ted
by burger2227
Tue Jul 22, 2008 6:10 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 35285

Have fun!

Ted
by burger2227
Mon Jul 21, 2008 7:20 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 35285

Go here

Talk to Bob about this at his Graphics Studio:

http://www.network54.com/Forum/613143/

Ted

LOL@FB
by burger2227
Fri Jul 18, 2008 12:10 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: program help (if you have a free sec)
Replies: 8
Views: 17537

I dunno

I think it is best to just close the file when you are done with it. Then reopen it when you need to read it again. You could make a SUB program with the OPEN and CLOSE and your loop. It is important that you not pass the End Of File. I usually use: DO WHILE NOT(EOF(1)) You could also use: IF NOT(EO...
by burger2227
Tue Jul 15, 2008 2:04 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Problem with QuickBasic 7.1
Replies: 26
Views: 36492

Bet he don't come back. He posted at Network 54 too.

Ted
by burger2227
Sun Jul 13, 2008 12:21 pm
Forum: News and Announcements
Topic: Revive QB45.com?
Replies: 17
Views: 37040

QB45

As I recall, the site was not getting a lot of Forum hits. I uploaded some files there and the comments from users were just a bunch of SPAM. I told them about it and they did nothing.

If you do get it running, please remove user Download comments to save bandwidth.

Ted
by burger2227
Thu Jul 10, 2008 1:03 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Problem with QuickBasic 7.1
Replies: 26
Views: 36492

Let me guess. You already threw the old keyboard away! If not, try it and see what happens. Otherwise FORGET ABOUT IT! You are apparently too stubborn to try another one!
by burger2227
Wed Jul 09, 2008 4:30 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Problem with QuickBasic 7.1
Replies: 26
Views: 36492

Does the keyboard work OK in Windows?

Sounds like the keyboard is not a standard keyboard for your language settings.
by burger2227
Mon Jul 07, 2008 5:58 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Error Handler problem
Replies: 8
Views: 13302

Try eliminating the PRINT "Resume". I think the error quits on any subsequent code before RESUME NEXT. Just a guess?

Ted
by burger2227
Sun Jul 06, 2008 8:59 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Wrestling game
Replies: 6
Views: 8736

Good Luck

When a module gets too full, you need to split it into other modules or it will not compile. You can place subprograms into other modules and LINK them. You can use command line also to LINK and Compile. Try zipping up the program and uploading it to www.QbasicStation.com You have to join before you...
by burger2227
Sat Jul 05, 2008 5:51 pm
Forum: News and Announcements
Topic: (TCB) Scrolling plateform game
Replies: 41
Views: 152429

Doesn't make much sense to me either. That does give FB a wider range of integer values, but that is not compatable with your QB code either.

Like I have said before, they should have called it FREE C.

Ted
by burger2227
Sat Jul 05, 2008 12:11 am
Forum: News and Announcements
Topic: (TCB) Scrolling plateform game
Replies: 41
Views: 152429

A lot of people don't feel that FB is really a basic programming language anymore. That is one reason that QB64 is being developed. It also will work on 64 bit machines. It still has a few things missing, but it is rapidly moving toward completion. Hopefully in the next 6 to 8 months. (link below) F...
by burger2227
Fri Jul 04, 2008 2:26 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Palette Files
Replies: 1
Views: 4400

You can create your own palette files

You can make your own palette files by reading the color attribute's R, G and B settings. If you create custom colors, they can also be recorded using: FOR c = 0 TO maxcolors - 1 ' screen 12 = 15 screen 13 = 255 OUT &H3C7, c 'prepares color port for INP reads Red = INP(&HC39) 'each sends 0 t...
by burger2227
Wed Jul 02, 2008 10:24 pm
Forum: News and Announcements
Topic: (TCB) Scrolling plateform game
Replies: 41
Views: 152429

Looks great!

I have been watching this thread for a while. You have taken the extra effort by converting to FB. Hope all goes well!

Ted