Search found 98 matches

by Zim
Wed May 10, 2006 12:18 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: TI-BASIC program - Need suggestions.
Replies: 25
Views: 31683

In MY day, we'd turn in our stack of punch cards at the desk and come back in a couple of days to see if it had run.
by Zim
Wed May 10, 2006 12:11 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Environment Variables
Replies: 5
Views: 6143

It's done the same thing since DOS version 2.1. I speak from experience.
by Zim
Mon May 01, 2006 11:30 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with making a log file!!
Replies: 6
Views: 5630

using APPEND

Mystic Shadows is correct!

Also, please note that even if the file does not already exist, opening a file with APPEND will simply create the file! So, you do not need to worry about whether the file already exists. If it doesn't, APPEND works just like OUTPUT.
by Zim
Fri Apr 21, 2006 11:36 am
Forum: General Discussion
Topic: On the eighteenth of April...
Replies: 11
Views: 11854

Cool, I didn't know that. What brought you to Sunny Mexico?
by Zim
Wed Apr 19, 2006 11:41 am
Forum: General Discussion
Topic: On the eighteenth of April...
Replies: 11
Views: 11854

Thanks, Moneo!

Interesting how it takes someone from Mexico to remind us Americans about our heritage. The only nearby date that I recall is April 20th; Adolph Hitler's birthday.
by Zim
Mon Apr 10, 2006 1:21 pm
Forum: General Discussion
Topic: what's a library./.
Replies: 5
Views: 5109

Library

To me, in the most general sense, a library is a collection of routines which can include Sub's, Functions, or any other code (such as COMMON block declarations) you may want to include into your program(s) without having to re-write the code, regardless of HOW you do it. QuickBASIC allows three met...
by Zim
Mon Apr 10, 2006 1:03 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: BASIC for Windows
Replies: 16
Views: 16643

Getting FreeBasic

Where can I download the freebasic? I got both FB IDE and FreeBasic from the FB IDE download site: http://www.fbide.freebasic.net/index.php?menuID=56 You get both the most current version of FreeBasic and a nifty Integrated Development Environment (IDE) called FBIde. Honestly, I had trouble getting...
by Zim
Fri Apr 07, 2006 12:34 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: TI-BASIC program - Need suggestions.
Replies: 25
Views: 31683

Ok... so this could be useful for modeling what they call "Sampling Without Replacement" such as in drawing numbers (or names) out of a hat where you don't want the same number (name) called twice.

Very useful! I'll have to give it a look.
by Zim
Fri Apr 07, 2006 11:24 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Is Liberty same as Q?
Replies: 3
Views: 4132

I agree. I looked at it once and at first blush it looked like the way to go, but after checking it out further, it's really not the same thing as QBasic.

And yes, there's a cost. With FreeBasic being actually free, there's really no reason to consider anything else, I believe.
by Zim
Thu Apr 06, 2006 11:43 am
Forum: QBASIC and QB64 Questions & Answers
Topic: TI-BASIC program - Need suggestions.
Replies: 25
Views: 31683

This is really interesting. Could you explain a bit about what this code is supposed to do and how it does it? Also, why is your code better (faster?) than the other code. One question in particular, where does the value of B come from? I do a little programming in TI-BASIC. I own a TI-83+ SE and my...
by Zim
Thu Apr 06, 2006 11:29 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Printing from a DOS App to a USB port in Windows (98 or XP)
Replies: 5
Views: 5287

Using Notepad

Actually, this is a good solution, and one which I tried. I sent my output to a text file and opened it using Windows Notepad with the intention of printing from there. Problem is, my program's output contained hi-bit Ascii characters for line drawing. In NotePad, these characters look like special ...
by Zim
Wed Apr 05, 2006 10:42 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Printing from a DOS App to a USB port in Windows (98 or XP)
Replies: 5
Views: 5287

Ok, I remember seeing that in Win95. I'll have to look for it in Win 98/XP. My son installed the printer so I'll bet he can help.

Thanks a lot!
by Zim
Mon Apr 03, 2006 2:25 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Printing from a DOS App to a USB port in Windows (98 or XP)
Replies: 5
Views: 5287

Printing from a DOS App to a USB port in Windows (98 or XP)

How do I do that?

DOS editors like Dos Edit and QB are looking for LPT1: but the printer is on a USB port. Years ago I used a MODE command to map an LPT port to a serial (COM) port, but how do I map to a USB port so I can use my new printer with DOS programs?
by Zim
Fri Mar 31, 2006 12:32 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Syntax Error #2
Replies: 3
Views: 4405

DATA "Cottonwood",5918" DATA "Flagstaff",45857 DATA "Camp Verde",6243 DATA "Sedona",7720 DATA "Prescott",26455 DATA "Jerome",403 DATA "xxx",-1 That quote mark at the end of the first DATA statement line is gonna REALLY goof you up! Could that be it? I know a problem with DATA will show up as an err...
by Zim
Thu Mar 30, 2006 12:45 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Searching Folders
Replies: 10
Views: 15165

Here's the online help from DIR/? from Win XP: Displays a list of files and subdirectories in a directory. DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:]sortorder]] [/P] [/Q] [/S] [/T[[:]timefield]] [/W] [/X] [/4] [drive:][path][filename] Specifies drive, directory...
by Zim
Wed Mar 29, 2006 12:51 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Appending binary in QB
Replies: 5
Views: 6548

combining bits

I had always wondered how to do (something like) this in QB 3 because QB 3 doesn't even have long integers! (shoot). Now maybe this won't work in QB 4 because of having to declare your sub's ahead of time, but I had always wondered about the concept of calling a sub and matching the parameter lists ...
by Zim
Tue Mar 28, 2006 12:45 pm
Forum: General Discussion
Topic: Licenced under "my rules"
Replies: 30
Views: 30983

English Teacher: In many languages, a double-negative implies a positive. In some languages, a triple-negative implies a positive. But in no language of the world does a double-positive imply a negative!

Student: "Yeah, right!"
by Zim
Thu Mar 23, 2006 12:44 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Wont DELETE!!!
Replies: 13
Views: 16383

I make desktop shortcuts that take me to specific folders and drop me at the DOS prompt.

There's also a thing you can do with "command /k" in folder properties so that when you right click on a folder, one of your options will be to go to the DOS prompt at that level. Handy.
by Zim
Wed Mar 22, 2006 12:33 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Getting Key Codes
Replies: 6
Views: 8234

Scan codes, as I recall, are either one or two bytes. "Funny" characters like Alt and Ctrl have scan codes that start with zero. So, first write a loop that scans the keyboard and checks for a key press, like: Do k$=inkey$ Loop until len(k$) Then check the length of k$. If it's two instead of one th...
by Zim
Mon Mar 20, 2006 12:49 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: followup to my "too many files" error posting
Replies: 1
Views: 2257

All I remember is the limit to the number of files on a 5-1/4" floppy in the root directory. It's 120, and 119 if the disk has a label. The label is simply a file name (directory entry) with a special (label) flag. (Maybe that's a 360K disk, too; it's been so long...)