Search found 148 matches

by Ralph
Wed Jul 02, 2008 9:31 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: TI-BASIC program - Need suggestions.
Replies: 25
Views: 45736

I used to have a TI-10, a $150 calculator that did the four basic arithmatic functions, plus SQUARE ROOT! Due to my being an electrical engineer in the power consulting business, the square root was a real wonder for me and made my short circuit calculations so much easier! Then, I bought myself a T...
by Ralph
Wed Jul 02, 2008 8:47 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Bigger window
Replies: 9
Views: 15364

Right click on the top, blue bar where Microsoft QuickBASIC is, then select Defaults, select the Layout tab. In the second frame on the right-hand side, change the height to 39. This should allow up to 36 visible lines on your screen.
by Ralph
Wed Jul 02, 2008 8:12 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: how do i copy and paste in QBASIC?
Replies: 5
Views: 11415

To Paste in QB, click on the left-topmost corner of the windowed QB screen, or just to the left of the QuickBASIC name, choose Edit, Paste, done. SUBs hae a little problem, in that two, instead of one, END SUB appear at the bottom of each SUB, so, one must be removed. Also, indentation is sometimes ...
by Ralph
Fri Jun 27, 2008 10:37 am
Forum: QBASIC and QB64 Questions & Answers
Topic: plz help me with these question and l don't have a clue to t
Replies: 6
Views: 12188

Oops, posted twice! Sorry. How does one delete such a second posting?
by Ralph
Fri Jun 27, 2008 10:22 am
Forum: QBASIC and QB64 Questions & Answers
Topic: plz help me with these question and l don't have a clue to t
Replies: 6
Views: 12188

As Burger 2227 explained to you in your next post, we believe that homework is a very necessary part of one's path towards learning, so, "we don't do homework". However, all here want to help others. It is our firm intention to help if you make an honest effort and post some code, explaini...
by Ralph
Mon Jun 02, 2008 1:14 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: 256 colours
Replies: 12
Views: 24779

I must say that I have gained from each of the above posts! :D In particular, I love burger2227's very simple code for the 256 colors in SCREEN 13, and kiyotewolf's color-number table, with group descriptions. I noticed that there are three repeating groups of 72 numbers each, namely: 1st group: 32 ...
by Ralph
Tue May 27, 2008 12:09 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Snake game help
Replies: 14
Views: 46137

Let's say you have a 4-pixel-long snake, and that is located at coordinates x,y, as follows: (4,10), (4,11), (5,11), and (5,12). To move it so the last pixel, (5,11), which I will call the head, moves down one pixel, with the rest following, just review my SnakeRAE code, as it is all there. Now, to ...
by Ralph
Mon May 26, 2008 8:12 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Snake game help
Replies: 14
Views: 46137

Well, Malifecs, coding is such a vast field, that one can only concentrate on one thing at a time. At this point, I feel that I supplied you with some code that you should study and understand. Then, you can do a few, experimental changes, with some forethought about what you expect to happen, in or...
by Ralph
Wed May 14, 2008 10:12 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Snake game help
Replies: 14
Views: 46137

I guess Malifeks' snake is hibernating! LOL!
by Ralph
Sat May 10, 2008 12:06 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Snake game help
Replies: 14
Views: 46137

Malifeks, here is a sample program for you. I am not using the code option, which you reported changed your code: '=============================================== 'SnakeRAE serves as a guide for making snake-like games. SCREEN 13: w = 320: h = 240 CLS LOCATE 8, 13: PRINT "S N A K E" 'color...
by Ralph
Wed May 07, 2008 10:08 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Snake game help
Replies: 14
Views: 46137

Malifeks: It is obvious to me that you have not run this program! Which makes me think you might not have made it. The program base is fairly done, the graphics seem too superior to have been made by you, without even having run the program. As to limiting the snake's size, you can do that by using ...
by Ralph
Wed Apr 30, 2008 3:48 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: MEMORY OVERFLOW ERROR !!! (Don't need help anymore)
Replies: 16
Views: 30209

Exploring farther:

My QuickBASIC 4.5 Help/Modules/Modules and Procedures says that there can only be one main module, or "the main program". So, it would seem to me that you need to farther reduce your code, anyway you can, before you can create your object and compiled files.
by Ralph
Wed Apr 30, 2008 12:29 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: MEMORY OVERFLOW ERROR !!! (Don't need help anymore)
Replies: 16
Views: 30209

The url below deals with "Program memory overflow" in qbx (PDS), as due to too many constants )over 680). Perhaps that is your problem? http://support.microsoft.com/kb/61349 Also, this question is answered here: http://www.outer-court.com/basic/echo/T37.HTM In the second case, the error me...
by Ralph
Sat Apr 19, 2008 4:40 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Graphs and what not...
Replies: 25
Views: 32605

gurmeet: I will try to help you after you fix your option2 label, as you still haven't fixed it! Why haven't you addressed this problem? If you do as we have asked you more than once, "Run your program", you would have found that to be a problem, and would have tried to fix it. Remember, w...
by Ralph
Thu Apr 17, 2008 10:44 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Graphs and what not...
Replies: 25
Views: 32605

As to "the option 2 thing". It's quite simple. Labels cannot have spaces (empty places), so, just change it from option 2: to option2: See the difference? EDITED ON April 18, 2008: In a previous post, I wrote, as correct code, the partial line: AND(Y <12> THEN WRONG! Please change it to: A...
by Ralph
Wed Apr 09, 2008 1:21 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Assembler / Machine Language
Replies: 13
Views: 20065

Mestrinho: Because it seems that Michael will be pretty busy, I am taking the liberty of informing you that Michale has already pointed out that the following partial code is wrong: IF melh <5> 1 THEN In BASIC and QB, the above line should be written as: IF melh > 1 AND melh < 5 THEN O.K., it seems ...
by Ralph
Mon Apr 07, 2008 7:23 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: COLOR for screen 13
Replies: 16
Views: 21616

Lee: If you only want the text background to match the SCREEN background, here is another way. Since it involves GETting and PUTting, first of all, let us know if you understand how to use those two graphics statements. Assuming you do, here's how: 1. Print the string. 2. DIMension an array to (L*8,...
by Ralph
Sat Apr 05, 2008 9:44 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Graphs and what not...
Replies: 25
Views: 32605

gurmeet: Did you try to run your code? You should learn how, so you may trouble shoot it when it doesn't do what you want it to. When I ran it, it stopped, showed the error message "ExpectedL BASE", and highlighted the 2 in the line, option 2: The problem here is that a label must be conti...
by Ralph
Sat Apr 05, 2008 8:03 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: swapping the bytes of an integer
Replies: 13
Views: 21053

Michael Cakins' one liner really did the trick! When I added one line at the beginning, and one at the end, it showed the answer as 3437, the correct value. I = 27917 i = CVI(RIGHT$(MKI$(i), 1) + LEFT$(MKI$(i), 1)) PRINT i TmEE's code, when I added the line at the beginning, theinteger%=27917 and, a...
by Ralph
Fri Apr 04, 2008 5:16 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Subs and variables
Replies: 7
Views: 10836

When you use a SUB (consider it as a sub-program), the main program simply goes to the address of that SUB, the SUB executes its code, and, at END SUB, the program simply returns to the next line from where it took off for the SUB. So, if you execute one or more SUBS, and want to end up someplace di...