Search found 151 matches

by Mac
Tue Oct 30, 2007 7:11 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: COBOL Question
Replies: 3
Views: 7909

[quote="MystikShadows"]CONFIGURATION-SECTION is an optional one since COBOL 85. I think it was a descriptive piece of information hence, could have any name.[/quote]

Thanks! I last coded COBOL in 1968, so I wasn't sure if it still worked like before.

Mac
by Mac
Sun Oct 28, 2007 8:54 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: COBOL Question
Replies: 3
Views: 7909

COBOL Question

In the ENVIRONMENT DIVISION, CONFIGURATION SECTION. SOURCE-COMPUTER, what were the allowable values? Can I say Windows-NT?

Mac
by Mac
Sun Oct 28, 2007 8:50 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: DD Dummy?
Replies: 0
Views: 9894

DD Dummy?

In calling IEBGENER, it was often necessary to include
//SYSIN DD DUMMY

Why couldn't we simply omit references to SYSIN in the JCL and lack of a statement be, by definition, DUMMY??

Mac
by Mac
Sat Oct 27, 2007 12:10 pm
Forum: Freebasic Questions & Answers
Topic: Can I make an image in Paint, then have a FB program load it
Replies: 53
Views: 136756

can it be done in QB? I don't know. I posted your question, modified to "Is there an easy way to take a BMP file such as would be created by Microsoft's Paint and display it via QBasic?" on The QBasic Forum in a thread discussing this problem. I'm assuming, until corrected, that the answe...
by Mac
Sat Oct 27, 2007 9:32 am
Forum: Freebasic Questions & Answers
Topic: Can I make an image in Paint, then have a FB program load it
Replies: 53
Views: 136756

Re: Can I make an image in Paint, then have a FB program loa

[quote="Mentat"](a FB question)[/quote]

Why don't you ask FB questions here:
http://www.freebasic.net/forum/

Experts galore there.

This is a QBasic forum, not FB. (Or, if it's mission has changed, maybe future QBasic questions should go to www.qbasic.com.

Mac
by Mac
Thu Oct 25, 2007 8:21 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with searching for words (for a data base)
Replies: 20
Views: 50101

[quote="Lee"]Now its saying im past the end of the file heh...[/quote]

My guess is that you read the last record and then issued another read command.

That's the best I can do, given that you didn't post your program.

Note that my program has a test for EOF.

Mac
by Mac
Sat Oct 20, 2007 2:12 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Is page flipping the best way to animate?
Replies: 6
Views: 10728

Actually, I have never used page swapping for animation, probably because I don't do animation except for moving sprites around a screen. For simply moving sprites, it is probably best to simply do WAIT &H3DA, 8 erase old sprite write new sprite WAIT &H3DA, 8,8 The only time I use page swapp...
by Mac
Sat Oct 20, 2007 10:22 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Is page flipping the best way to animate?
Replies: 6
Views: 10728

Flipping

Run the study below to ensure we are talking the same language here. In sprite-animation type stuff, you write on one screen while the other is being seen. You flip when you are finished moving stuff. Some people just use paging to show a help file and return to the game. Try some sample studies of ...
by Mac
Fri Oct 19, 2007 7:42 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Is page flipping the best way to animate?
Replies: 6
Views: 10728

Well, the concept is this While the user is looking at screen 1, you are doing PRINT and PSET or whatever to screen 2 which does not bother the user. When you are all finished, then on some speed that you decide yourself after experimenting, you swap screens. Only works on some SCREENs. If not suppo...
by Mac
Thu Oct 18, 2007 9:26 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Simple QBASIC Question
Replies: 6
Views: 10944

Hmm, that works but seems to only work if there were 2 choices. How would you write it if you had 4 options ' First get a valid choice from the user PRINT "Select a gender:" PRINT "1. Male" PRINT "2. Female" PRINT "3. Cyborg" PRINT "4. None " DO INP...
by Mac
Wed Oct 17, 2007 3:13 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Simple QBASIC Question
Replies: 6
Views: 10944

Try this

' First get a valid choice from the user PRINT "Select a gender:" PRINT "1. Male" PRINT "2. Female" DO INPUT "> ", G$ IF G$ <> "1" AND G$ <> "2" THEN PRINT "Please select 1 or 2." LOOP WHILE G$ <> "1" AND G$ <> "2&...
by Mac
Sat Oct 13, 2007 10:49 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Sprite flicker problem
Replies: 8
Views: 15097

[quote="Theophage"]Mac's solution (which seems to be placing the WAIT statement before every PUT)[/quote] My suggestion, in words, rather than code, is to put WAIT &H3DA, 8 before you start messing with the screen and WAIT &H3DA, 8,8 after you are finished. If you never come back t...
by Mac
Sat Oct 13, 2007 4:37 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Passing arrays to subs
Replies: 4
Views: 10073

[quote="Theophage"]Dammit, I should really play around a bit more before posting; I found my problem. It seems that QB wanted to make my variables SINGLE by putting the "!" by their names in the DECLARE, but that wasn't in my SUB. In fact, in the program I defined the array to be...
by Mac
Sat Oct 06, 2007 10:37 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Sprite flicker problem
Replies: 8
Views: 15097

try this

Is there nothing I can do about that? DIM sprite(515) AS INTEGER SCREEN 13 RANDOMIZE TIMER LINE (0, 0)-(15, 31), 12, BF GET (0, 0)-(15, 31), sprite(0) CLS FOR lines = 1 TO 255 x1 = INT(RND * 320): y1 = INT(RND * 200) x2 = INT(RND * 320): y2 = INT(RND * 200) LINE (x1, y1)-(x2, y2), lines NEXT lines ...
by Mac
Fri Oct 05, 2007 3:58 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Binary Files
Replies: 6
Views: 10721

Re: Binary Files

[quote="supernova"]access a binary file in qbasic[/quote]Sounds funny, but it is really necessary to know WHY you need to "access a binary file". Otherwise, the only answer is a general tutorial on file access including OPEN FOR RANDOM and OPEN FOR BINARY, blah-blah-blah. What do...
by Mac
Mon Oct 01, 2007 7:18 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Problem with compiling
Replies: 8
Views: 11646

[quote="Codemss"]Codemss[/quote]

RubyNL - My main man! Don't know why you changed your handle, but that happens, I guess.

I used to be Mr. Mac on CraigsList.org, but people kept assuming I used an Apple computer, so I changed it to NT_User.

So everyone changes, I guess.

Mac
by Mac
Sun Sep 30, 2007 6:32 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How can I make white background in Screen 12??
Replies: 5
Views: 10594

[quote="Codemss"]actually very easy[/quote]

LOL! rubyNL, my main man!!

Mac (The QBasic Forum)
by Mac
Sun Sep 30, 2007 10:39 am
Forum: QBASIC and QB64 Questions & Answers
Topic: How can I make white background in Screen 12??
Replies: 5
Views: 10594

[quote="Mentat"]This works:[/quote]

Heh - glad you caught the error with DRAW P1,1. LOL!

Mac
by Mac
Sun Sep 30, 2007 10:28 am
Forum: QBASIC and QB64 Questions & Answers
Topic: How can I make white background in Screen 12??
Replies: 5
Views: 10594

Re: How can I make white background in Screen 12??

Is there a way to make the output background white instead of black when using Screen 12? I don't think so, but you can make a general white background for graphics. Mac SCREEN 12: PAINT (1, 1), 15 LOCATE 5, 1 PRINT "Use 7 instead of 15 for not-so-bright" PRINT PRINT "Note that backg...