Search found 148 matches

by Ralph
Fri Apr 04, 2008 4:26 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Graphs and what not...
Replies: 25
Views: 32438

gurmeet: I don't know what version of qb you have, but, in my QuickBASIC Version 4.5, as soon as I try to run your code, it gives me an error message, "Label not defined", and stops on your line, IF k$ = CHR$(13 AND C = 2 THEN GOTO option2 Note that GOTO option2 requires a label option2, w...
by Ralph
Wed Apr 02, 2008 10:45 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Graphs and what not...
Replies: 25
Views: 32438

Gurmeet and "Stealing code"

I'm afraid that anyone can come to this and any other site and copy whatever is available. That is also one of the reasons that we don't like to try to completely solve homework; rather, we encourage collaborative efforts, and try to indicate the "how and why", rather than the solution. Yo...
by Ralph
Wed Apr 02, 2008 3:52 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Graphics routines
Replies: 15
Views: 21223

Ted:
The code posted by TMEE has some TPRINTs in it. The OP, Johnfin, was referring to that code when he commented on too many syntax errors, and what TPRINT was supposed to be.
by Ralph
Sun Mar 30, 2008 10:36 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Graphs and what not...
Replies: 25
Views: 32438

Ted and gurmeet I apologize for posting wrong information! :oops: Gurmeet: Thank you for posting your code. Here are some of the things that I find need fixing: 1. The first line your subtoutine keyboard will not work! One fix could be: k$="":WHILE k$="": k$=inkey$:WEND That line...
by Ralph
Sun Mar 30, 2008 5:00 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Graphs and what not...
Replies: 25
Views: 32438

Gurmeet:

You are only plotting the points with X = -10, -9, -8,...8, 9, 10, that is, only 21 points, each separated by a distance dX = 1. Make your FOR/TO using a STEP 0.01, so you'll get a whole lot of points plotted, making the result look like a continuous curve.
by Ralph
Tue Feb 26, 2008 4:13 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: sizeof()
Replies: 12
Views: 25372

Patz:

I could not get QB 4.5 to accept any of your code, as in:

Code: Select all

PRINT LEN(Int%)
I was able to use:

Code: Select all

CLS
a% = 12345       'int
PRINT LEN(a%)
a& = 12345678    'long int
PRINT LEN(a&)
a! = 1234.5      'single
PRINT LEN(a!)
a# = 12345678.9# 'double
PRINT LEN(a#)
Am I doing something wrong?
by Ralph
Sat Feb 09, 2008 2:48 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Haven't used qb in awhile, quick question
Replies: 28
Views: 46426

UDT

While I cannot help you in your question, I do think you might get a good answer if you post
1. What you want to do
2. The code that you are trying to use for that purpose
3. Where, in that code, you are having trouble
by Ralph
Tue Feb 05, 2008 11:03 am
Forum: QBASIC and QB64 Questions & Answers
Topic: binair to bits
Replies: 20
Views: 53018

Thanks! I'll try your information tomorrow.

Seb, once someone answers your post, all you have to do, if you read it, is put in a very short "Thank you" note, stating your intention of answering at a later time or date. This is called "acknowledging". This is the minimum respect one shows for others, and there is really no ...
by Ralph
Thu Jan 31, 2008 9:09 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Absolute Assembler problem
Replies: 6
Views: 12560

Assembler

Yes, you're right. I don't know why I confused assemlbe with compile! QuickBASIC 4.5 makes compiling very easy, not the assembler thing. I, personally, just barely got into assebly language, but have never done anything with it. I hear that QuickBASIC can link (?) with assembly-language code to do a...
by Ralph
Thu Jan 31, 2008 3:43 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Absolute Assembler problem
Replies: 6
Views: 12560

QB Assembler

Don't know if this will help you, but, if you download QuickBASIC 4.5, you will be able to compile most code directly from the IDE.
by Ralph
Mon Jul 16, 2007 5:01 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with PRINT command...
Replies: 7
Views: 15864

Unless you plan to print these four lines more than once, your way is the best way. If you plan on printing those lines many times, this way is better: DIM P(4) AS STRING P(1) = "1. Attack" P(2) = "2. Defend" P(3) = "3. Magic" P(4) = "4. Escape" Then, each tim...
by Ralph
Sun Jul 08, 2007 9:45 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: game problem
Replies: 11
Views: 19892

iPeres: I've done some minor corrections and improvements, shown with '''. You must now copy it and run it, then post where an error or malfunction occurs, so that we may help you further. Until you do this, I will not respond any more. DIM wild$(15) wild$(1) = "|---------------*---------------...
by Ralph
Sat Jul 07, 2007 9:37 am
Forum: QBASIC and QB64 Questions & Answers
Topic: how to get the timer to count down
Replies: 5
Views: 14839

Assuming you start after midnight, and that you want a countdown time of less than one day, you can use this to show the countdown, second-by-second: 'Following code shows remaining time, starting with 35 seconds. CLS CountDownTime = 35 'seconds, say T0 = TIMER T2 = TO + TIMER DO WHILE TIMER < T2 LO...
by Ralph
Fri Jul 06, 2007 2:40 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: game problem
Replies: 11
Views: 19892

iPeres: The main problem I see is that we don't really know just what you are trying to accomplish with your code. I would strongly recommend that you use lots of comments as you code, to tell yourself - and us - just what each peice of code is supposed to do. With that kind of information, I'm sure...
by Ralph
Fri Jul 06, 2007 12:08 am
Forum: QBASIC and QB64 Questions & Answers
Topic: game problem
Replies: 11
Views: 19892

I've changed your program somewhat. See if you like what I've got, and post the changes or additions you want to make to it, after trying it out in QuickBASIC. I know it is very incomplete, Here's the code: 'MONSTERS, BY iPires '''New line by RAE CLS '''New line by RAE ''' = REMarks by RAE wildernes...
by Ralph
Thu Jun 28, 2007 2:48 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Dont understand the feedback effect
Replies: 6
Views: 12390

RubyNL wrote: S: Does my site work? When I try it it works fine, but Ralph pmed that it wasnt! I gave it another try, and, it worked! I read your code on the 3d sphere. Works good! I did change your code slightly, as commented below, for the second FOR...NEXT loop: FOR y = 0 yo 299 ecuation = r^2 - ...
by Ralph
Tue Jun 26, 2007 4:05 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: moving pixel drawings
Replies: 4
Views: 7898

Your present code has some basic lack of knowledge problems... First, you ignored my post and copied from your old code. Did you, perhaps, copy all the code from someone else? If you are trying to learn, I would recommend that you be humble about it, and ask one question at a time, where you either ...
by Ralph
Mon Jun 25, 2007 8:29 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: moving pixel drawings
Replies: 4
Views: 7898

Could you first fix this part of your code? LOOP UNTIL keyed$ <LOCATE> 1) THEN row = row - 1 end if Also, please note that: Arrow Up = 0H = 0+CHR$(72) Arrow Down = 0P = 0+CHR$(80) Arrow Left = 0K = 0+CHR$(75) Arrow Right = 0M = 0+CHR$(77) You have some changes to make in your code!
by Ralph
Mon Jun 25, 2007 2:05 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Dont understand the feedback effect
Replies: 6
Views: 12390

As to the idea behind the program FEEDBACK.BAS, by running it in a controlled manner (by placing debugging toggle breakpoints, using F9, at strategic points), one sees that the string is created to a varying scale, location, and "smudgeiness", giving the impression of a mystical weaving of...
by Ralph
Mon Jun 25, 2007 10:41 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Dont understand the feedback effect
Replies: 6
Views: 12390

Feedback effect

You wrote: "I really dont know how to do this effect. " Do you mean that you don't know how to run the Feedback.bas program, or that you don't know how to change it to do something else? You wrote: "...i'm trying to make a demo with as much good effects as i can." and, "I ha...