Search found 14 matches
- Thu Feb 11, 2010 8:02 am
- Forum: Pete's QB Site News
- Topic: I get an email saying I have a PM...
- Replies: 6
- Views: 63661
Same thing here, today
(no text)
- Fri Nov 06, 2009 2:40 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: How to tell if a variable is a whole number or decimal
- Replies: 9
- Views: 18703
[quote]What I want is like a way for the program to tell me IF the number has a decimal. [/quote] DIM I AS INTEGER, Z AS SINGLE .... Z = X/Y I = Z IF ABS(Z-I) < 0.0001 THEN 'INTEGER ELSE 'NOT INTEGER END IF That is, force it to round-off to an integer (there are functions that could be used instead)...
- Wed Jun 03, 2009 3:57 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: To Pete and friends: How did you guys get so good at QBasic?
- Replies: 10
- Views: 19643
Practice!
Thirty-some years ago I got so involved in playing around in BASIC that I flunked out of college. Maybe that isn't the best example.
- Fri Jan 30, 2009 10:07 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Verifying match between Source.bas and Run.exe
- Replies: 12
- Views: 31334
It's not just QBasic
A few weeks ago, I had a similar question about a C program for a PIC microcontroller. Wrapped together in one folder were two .HEX files for programming the chips, two main programs, and numerous sub-modules of various dates. There wasn't even any information indicating what compiler had been used....
- Fri Oct 24, 2008 2:59 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Array Size Limits /AH under WinXp
- Replies: 15
- Views: 22902
Stacks and Queues
Stevo, if you don't have to back up too far, you could save the file in a circular queue in RAM as you go forwards, overwriting the oldest data as needed, then use the queue to back up. Sorry, I don't have time to explain further today. I learned the techniques from a 30 or 40 year old dead-tree sou...
- Tue Jul 01, 2008 7:48 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: 12257
Long division?
Double precision arithmetic is only approximate, and no numeric data type I've ever heard of would take such long numbers without truncation. So to me, it sounds like the object of the assignment was to represent the very long numbers as strings or arrays of decimal digits and code the long division...
- Tue Jul 01, 2008 7:08 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: plz help me out
- Replies: 9
- Views: 16893
Linster: Accessing a string like a character array
>>>What function in basic allows you to access part of a string just like it was in a character array?
That's MID$(string, position, number of characters)
MID$(A$,I,1) is equivalent to A(I,1)
That's MID$(string, position, number of characters)
MID$(A$,I,1) is equivalent to A(I,1)
- Mon May 05, 2008 9:41 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Making my sprite jump
- Replies: 14
- Views: 22939
It's been over ten years since I did any graphics in Basic, so I don't remember: Does Y on the screen increase downwards (that is, you have to subtract instead of add to get it to go up)? If you want to work with a more conventional set of coordinates, you can always transform them right before disp...
- Mon May 05, 2008 7:20 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Does anyone recognize this command: COM(1) ON?
- Replies: 7
- Views: 14084
Thanks
The device I was trying to connect had a dead serial port, but I found another sample device and I'm getting further with it.
- Fri May 02, 2008 9:54 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Does anyone recognize this command: COM(1) ON?
- Replies: 7
- Views: 14084
- Fri May 02, 2008 7:29 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Making my sprite jump
- Replies: 14
- Views: 22939
Is this a physics question or a graphics question?
That is, do you need some help with the math of when and where the sprite should move?
- Fri May 02, 2008 7:24 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Does anyone recognize this command: COM(1) ON?
- Replies: 7
- Views: 14084
Thanks again, do you know where I can find more information?
The handshaking routine does use an INP to poll the RTS handshake, and that's where it's stopping. I can see that the address is within the COM 1 I/O address range of 03F8-03FF, but to really understand this I need to know the definition of each byte in there, and even how some of them break down in...
- Thu May 01, 2008 2:49 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Does anyone recognize this command: COM(1) ON?
- Replies: 7
- Views: 14084
Thanks
Thank you, Burger. There not being any ON COM or any other event-trapping code in the program, those COM(n) ON/OFF commands weren't doing anything. Maybe the original author started to use event-trapping, but gave up on getting it to work and changed to polling the port. (It seems like I've been thr...
- Thu May 01, 2008 11:25 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Does anyone recognize this command: COM(1) ON?
- Replies: 7
- Views: 14084
Does anyone recognize this command: COM(1) ON?
I'm trying to update a program written in 1992, supposedly in QuickBasic. Most of it ported just fine into Freebasic (with the -lang qb option), but the compiler didn't recognize two commands sprinkled around the serial I/O subroutines: COM(1) ON .... COM(1) OFF I rem'd all those out, and it compile...