Search found 151 matches

by Mac
Mon Nov 26, 2007 9:59 am
Forum: QBASIC and QB64 Questions & Answers
Topic: File handling and Case study....
Replies: 6
Views: 6242

Re: File handling and Case study....

Our prof said that we must save the data in notepad He/she probably meant to save the data in a file that NOTEPAD can OPEN, since there is no such concept as "save the data in notepad". Here is a routine that creates a simple 2-line file that NOTEPAD can OPEN: OPEN "MyStuff.txt" FOR OUTPUT AS #1 PR...
by Mac
Mon Nov 26, 2007 9:47 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Explanation of QBASIC code
Replies: 3
Views: 3924

Re: Explanation of QBASIC code

from a machine The result of the lines from OPEN to CLOSE is 1) to send ESC followed by "P" to the device 2) to load into variable a$ a 15-character response send back. Presumably you have a manual that explains what ESC-P means for the device you are working with and possible data it returns. This...
by Mac
Tue Nov 20, 2007 4:22 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Rotating a bit map image
Replies: 11
Views: 10560

Their should be a simpler way, I think. When you only want to rotate in angles that are multiplies of 90 degrees Yes! It would be incredibly inefficient to use rotation via angles when all you want to do is reverse bits. as Codemss demo aludes, you take bits a b c d e f g h i j k l m n o and simply...
by Mac
Fri Nov 16, 2007 9:08 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: INP and OUT Port
Replies: 37
Views: 36006

Re: Follow up

danner wrote:Ted, (blah-blah)
Right! You're working with the right man for this job!

(I know zip)

Mac
by Mac
Thu Nov 15, 2007 2:29 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How to change icon at top left corner and name?
Replies: 3
Views: 3392

Lee wrote:ok nvm my plan didnt work...I used the SHELL "Title something" but didnt work.
SHELL "cmd /c title zzzzz"
by Mac
Wed Nov 14, 2007 9:42 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How to change icon at top left corner and name?
Replies: 3
Views: 3392

You mean the MSDOS icon on the top bar of a non-maximized DOS window?

If so, forget it.

I once knew how to change the text via SHELL and could find it, but I see that you already have an idea of that.

Mac
by Mac
Tue Nov 13, 2007 2:42 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How to mix Shell commands with variables?
Replies: 9
Views: 6383

what im trying to do is search for none variable strings, which cannot be done in QB without teh SHELL command. Don't know what you mean by that. But when you get tired messing around, try this: a) Create C:\ZSOACTRS b) Go there in DOS and do this NOTEPAD Actor.dat and paste this: "John Smith", "Gr...
by Mac
Mon Nov 12, 2007 5:32 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Slow fixed point math
Replies: 4
Views: 4249

I converted the program into fixed point math. You say "everybody rants about INTEGER". True, but they mean applications where the user is working in whole numbers, for example x and y coordinates of the screen. They do not speak of converting applications from decimal numbers to whole numbers. Bel...
by Mac
Mon Nov 12, 2007 10:24 am
Forum: QBASIC and QB64 Questions & Answers
Topic: How to mix Shell commands with variables?
Replies: 9
Views: 6383

Ill post the whole program right now OPEN "Actordat.txt" FOR INPUT AS #1 - If the file is not there, this instruction will fail to run - It will fail anyway because filenames are limited to 8.3 - Try "Actor.txt" if kp$ = "s" then goto srcaktr if kp$ = "e" then goto ext loop - Why are these in lower...
by Mac
Sat Nov 10, 2007 5:23 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How to make 2 things happen at once in Qbasic
Replies: 5
Views: 5003

Re: How to make 2 things happen at once in Qbasic

[quote="tibbalz"] how to make Qbasic do two things at once[/quote]

Well, your print example was strange, but here is a simple example of moving two missiles at once while prompting the user for input:

http://www.network54.com/Forum/171757/m ... 009940081/

Mac
by Mac
Fri Nov 09, 2007 9:32 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How to make 2 things happen at once in Qbasic
Replies: 5
Views: 5003

Re: How to make 2 things happen at once in Qbasic

[quote="tibbalz"]I wish I could explain myself a little better[/quote]

Well, I think you need to try harder.

Explain what problem you are trying to solve.

What kind of game are you working on?

Mac
by Mac
Fri Nov 09, 2007 8:14 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Slow fixed point math
Replies: 4
Views: 4249

Re: Slow fixed point math

[quote="Mac"]you do not have a clean $$$.[/quote] The word "c o m p a r i s o n" was changed by the system to "$$$". That's the strangest thing. Is "c o m p a r i s o n" a keyword? When I try to edit my post, $$$ shows up like I originally typed it. Mac P.S. I tried "c x m p a r i s o n" and got the...
by Mac
Fri Nov 09, 2007 8:09 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Slow fixed point math
Replies: 4
Views: 4249

Re: Slow fixed point math

Am I doing something wrong? Well, Ruby, I kept waiting for someone to answer your question so I could finally see what you're talking about. I can't even understand the question. The program below will clearly illustrate that fixed is better than float. But you do not have a clean comparison. You a...
by Mac
Thu Nov 08, 2007 1:38 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: VB 6 Problem on WindowsNT
Replies: 4
Views: 5235

Hmm... Maybe this thread should be moved to the General board, seeing how it's not a QB/FB question as this the forum is intended for. Mac, which do like most; COBOL, VB or QBASIC? According to Pete, this forum is for all languages. The general board is probably intended for non-programming issues....
by Mac
Wed Nov 07, 2007 8:04 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: VB 6 Problem on WindowsNT
Replies: 4
Views: 5235

VB 6 Problem on WindowsNT

What I don't understand is that this program works fine for many days, but from time to time, inexplicitely gives an error "". Could it be my Always_On_Top Sub? It seems standard enough to me. What happens (I think it is after I use Netscape) is that when I click, I get Run-time error '70': Permissi...
by Mac
Wed Nov 07, 2007 4:12 pm
Forum: Freebasic Questions & Answers
Topic: Can I make an image in Paint, then have a FB program load it
Replies: 53
Views: 83065

Bye to this thread

History of this thread: 1) FB Question 2) I, thinking this was a QBasic Forum, gave the OP the URL of the FB forum, thinking to do the OP a favor. Why clutter a QBasic forum with FB posts? I then, not trying to recruit, posted a reference to www.qbasic.com, in case Pete's QBasic Forum was now Pete's...
by Mac
Tue Nov 06, 2007 11:12 pm
Forum: Freebasic Questions & Answers
Topic: Can I make an image in Paint, then have a FB program load it
Replies: 53
Views: 83065

Re: QBasic

[quote="Nodtveidt"]I also don't see any "Proud Of" subforums on either of the forums that are linked from the index page.... I'm not quite sure what your intention is by stating something like that, but knowing you, I'm guessing it's neither tactful nor honorable.[/quote] If you go to www.qbasic.com...
by Mac
Sun Nov 04, 2007 10:05 pm
Forum: Freebasic Questions & Answers
Topic: Can I make an image in Paint, then have a FB program load it
Replies: 53
Views: 83065

Re: QBasic

[quote="Nodtveidt"][/quote]

I don't see any QBasic programs written by you in our Proud Of Subforum.

Mac
by Mac
Wed Oct 31, 2007 4:10 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: return from dos screen to window screen
Replies: 12
Views: 9714

[quote="Codemss"]I have dumped the computer to my younger brother now, but I'm sure I could do this.[/quote] Surely your brother would let you try that and verify one way or the other. All I can say is I have never seen it done. Maybe your program was an EXE compiled in some other language and capab...
by Mac
Wed Oct 31, 2007 9:02 am
Forum: QBASIC and QB64 Questions & Answers
Topic: return from dos screen to window screen
Replies: 12
Views: 9714

[quote="merallas"]When in graphic mode the screen dissapears and qbasic looks to be terminated. In my remembering it was also possible to make a graph in the small window screen. But perhaps I am wrong.[/quote] You cannot have a running program in SCREEN 13, etc. be also in a small window screen. I ...