Search found 450 matches

by moneo
Thu Dec 28, 2006 2:30 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How to put commands at the beging of a allready existing exe
Replies: 4
Views: 4334

Re: How to put commands at the beging of a allready existing

Evan wrote:How do you put commands at the beging of a allready existing exe file with qbasic?
First of all, you can't modify an existing exe file unless you know assembler well and know how to use Debug.

What are you trying to do?

*****
by moneo
Sun Dec 24, 2006 7:18 pm
Forum: Pete's QB Site News
Topic: spam problems
Replies: 16
Views: 30206

Pete, that solution sounds fine to me.
We can wait --- we're not going anywhere.

Merry Christmas to you.

Regards..... Moneo
by moneo
Fri Dec 22, 2006 12:25 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Newbie Here!
Replies: 4
Views: 4521

Welcome aboard, CDRIVE! I've been programming for 44 years, and have seen a lot of stuff from your wife's experience, especially the IBM stuff. I did assembler for 25 years, from mainframes, into minis, and then microprocessors. Somewhere along the way I got into Basic and then QuickBasic. Have done...
by moneo
Wed Dec 13, 2006 9:25 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Line breaks in DATA statements?
Replies: 7
Views: 6151

P.S.: "Seabiscuit" --- are you a horse racing fan? You must have me confused with another Seabiscuit. :P Alright, I'll use the dummy characters. No, what I meant was that Seabiscuit was a famous race horse in the 1930's and 1940's. Books were written about him, and several motion pictures were made...
by moneo
Wed Dec 13, 2006 7:06 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Line breaks in DATA statements?
Replies: 7
Views: 6151

I found a way to add line breaks. (sort of) If I want it to break after a certain word, I can just put spaces after it until it wraps the text on its own. That's a good idea to use dummy characters too! I could use that for other special characters, or if I get sick of putting lots of spaces in. Th...
by moneo
Wed Dec 13, 2006 7:03 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Base conversion code - Comments, please!
Replies: 4
Views: 5268

Re: Base conversion code - Comments, please!

...... Is there anything you can find wrong with these codes? Memory leaks, bugs, etc? There is only one I can really find (and roughly fixed) and that is that Dec& will sometimes turn negative...? I guess it "overflows", but not as in a compiler error... Help? I ran a few tests with "normal" numbe...
by moneo
Wed Dec 13, 2006 6:20 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Line breaks in DATA statements?
Replies: 7
Views: 6151

How can I put strings with line breaks in DATA statements? I could do something like this and PRINT it or store it in a variable: "Hello," + chr$(13) + "World!" but I can't use chr$ inside DATA statements. Is there any way I can put a string in a DATA statement with line breaks in it? Right, you ca...
by moneo
Sat Dec 09, 2006 7:57 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Reading from Files?
Replies: 7
Views: 7696

RayBritton wrote:fb is the modern version of qb, there are almost no differences
For crying out loud, Ray, you sound like a Jesus freak! You're like an evangelist who keeps pounding us with FreeBasic. It can get really annoying. Don't you have anything original to share in your posts?

*****
by moneo
Sat Dec 09, 2006 7:51 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Reading from Files?
Replies: 7
Views: 7696

...... Anyways, I figured it out :D '$INCLUDE: 'code.txt' Guess it's a library command, but it worked pretty good here, hehe. Actually, $INCLUDE is not a library command, it's what Basic calls a metacommand. It provides a nice, simple way for programs to be able to share some common code. Most lang...
by moneo
Sat Dec 09, 2006 1:43 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Stupid question but i really need help!
Replies: 20
Views: 18640

[quote="Mike Alexander]...... The editor does work great... unless in a window as you state... I chose to get rid of the dos based editor and use the context because I prefer coding whereI can reference Pete's forum for answers to my questions.......[/quote] You can do both. Using START then RUN cmd...
by moneo
Fri Dec 08, 2006 8:36 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Command Line Argument/Switch
Replies: 10
Views: 8239

Sounds like a good way to do it.

BTW, unprintable just means that you can't actually see the character when you print it to the screen or printer, but it's there and gets sent to the device.

Regards..... Moneo
by moneo
Fri Dec 08, 2006 8:31 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Stupid question but i really need help!
Replies: 20
Views: 18640

Of course you can run QBasic under XP. Many of us are doing it right now. There is no special installation required. I compile and run my QuickBasic 4.5 programs, and also use QBasic for certain things. No problems. I've heard people say thet they've had some problems, but I don't know what they are...
by moneo
Thu Dec 07, 2006 7:55 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Command Line Argument/Switch
Replies: 10
Views: 8239

.....More on my program... So how can I add non printable Characters in a Print statement? Specifically an ASCii Value of 001 You can add any valid ASCII characters you want, either directly to a PRINT command or to a string, like: PRINT "BLABLABLA"+CHR$(001) ... or more or A$="BLABLABLA"+CHR$(001)...
by moneo
Mon Dec 04, 2006 2:15 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Random Access File Hint for me....
Replies: 5
Views: 7149

Sorry, Mike, but I won't be able to help you with this. 1) I never use Random files, so I don't understand them. 2) I never use Type Declarations, ditto. 3) My regular PC is broke and I'm using my daughter's laptop which has no QB stuff. Your sort looks like a modified bubble sort. If it works, then...
by moneo
Sun Dec 03, 2006 7:27 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Random Access File Hint for me....
Replies: 5
Views: 7149

ANOTHER THOUGHT/QUESTION For the Graphs section, I want it to be in order from Largest # of times played to Least Number of Times played... How can I search through XX Number of records and arrage it (not changing the actual data file) order for my graph... Seems like a tedious process to go though...
by moneo
Sun Dec 03, 2006 7:02 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Yesterdays Date??
Replies: 8
Views: 7227

Ok, I didn't realize that YEAR$ was only two digits. Fine, so you have some filenames like 1231100 or 1231101. That's OK, as long it's a valid filename and you know how to interpret the pseudo date within. I have seen stranger stuff done to dates in an attempt to circumvent the Y2K problem. Most of ...
by moneo
Sun Dec 03, 2006 6:16 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Yesterdays Date??
Replies: 8
Views: 7227

Nice that you're using my code. I've seen some apparently simpler code, but mine uses routines that have been working for over 15 years in my general date utility program. I have some comments on the following code: zdd=zdwork '* Pack yesterday's date as MM-DD-YYYY Z$=FILL$((ZMM),2)+"-"+FILL$((ZDD),...
by moneo
Sun Dec 03, 2006 5:46 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Command Line Argument/Switch
Replies: 10
Views: 8239

.. Can I have an error trap for my whole program? By that I mean at the very top (just before my mainline) I can put an "on error goto errortrap" and then .all for errors that dont have an error code in my trap. Here's the recommended way to handle error trapping, by Mac, over at Qbasic.com. As you...
by moneo
Sat Dec 02, 2006 4:05 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Command Line Argument/Switch
Replies: 10
Views: 8239

Right, if the user makes a typo error on the filename, you'll get a "file not found" error on the open. Using the ON ERROR is a good way to catch this.

Regards..... Moneo