Search found 132 matches

by Antoni
Mon Oct 10, 2005 5:19 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Old Timestamp
Replies: 5
Views: 6502

Some Ideas: 1.- The DOS file timestamp uses bitfields,7 bits for the minute, 5 bits for the hour, 6 bits for day, 4 bits for month and the rest for year since 1980 (iirc) . If you think it could be that I can check my old books for the exact format. 2.- Microsoft Excel uses a floating point value, t...
by Antoni
Wed Sep 28, 2005 10:46 am
Forum: QBASIC and QB64 Questions & Answers
Topic: QBasic database .dbf managment?
Replies: 6
Views: 7820

You can get the dbf format description from www.wotsit.org And yes, to erase a record, just mark it as unused. The pack function copies the dbf in another one skiping the erased fields, then deletes the original. BTW: Ethan winer dbf library is not portable to FB, as it's based in the FIELD instruct...
by Antoni
Wed Sep 14, 2005 11:28 am
Forum: QBASIC and QB64 Questions & Answers
Topic: inches of a monitor
Replies: 10
Views: 12890

According to Ralf Brown list, that Int 10h function 15h is implemented only for a thing called "PC Convertible" ,so probably it will not work. Go guess....
by Antoni
Tue Sep 13, 2005 5:03 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: QuickBasic for Mac?
Replies: 12
Views: 15027

A 90% of the "known issues" in the QB Knowledge base applied to QB for Mac, so probably it's not a great piece of code. About FB for Mac, yes, the developers are waiting for Apple to switch to Intel processors, this way the assembler emitter will not need changes. The second problem is non...
by Antoni
Fri Aug 12, 2005 6:37 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Which is faster?
Replies: 3
Views: 5194

If you are in QB, add to what Nek said:
In EMS you can peek/poke/put/get directly the EMS window.
XMS is unreachable from QB, you must copy the data to normal memory with the XMS functions before accessing it.
by Antoni
Wed Aug 10, 2005 8:44 am
Forum: QBASIC and QB64 Questions & Answers
Topic: XMS memory handling
Replies: 3
Views: 5058

XMS must be used from DOS as a sort of RAM disk, you must copy data from XMS to regular memory before being able to access it.

EMS can be peeked and poked directly from a QB program (thru the EMS window), so it's faster in most cases.
by Antoni
Wed Aug 10, 2005 8:21 am
Forum: QBASIC and QB64 Questions & Answers
Topic: How to find out if a directory exists?
Replies: 13
Views: 22622

You can use CHDIR too

Code: Select all

DIM SHARED myerr%

ON ERROR GOTO errproc
CHDIR "FOO"
IF myerr% = 72 THEN PRINT "Path not found": myerr% = 0
ON ERROR GOTO 0

 
end

errproc: myerr% = ERR: RESUME NEXT
by Antoni
Mon Aug 08, 2005 2:32 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Real time clock access
Replies: 22
Views: 23018

Seb:
You should get Ralf Brown's Interrupt list. Most of the calls and ports you need are documented there.
http://www.ctyme.com/rbrown.htm
by Antoni
Mon Aug 08, 2005 9:28 am
Forum: QBASIC and QB64 Questions & Answers
Topic: some more questions!
Replies: 12
Views: 12379

SebMcClouth wrote:I have no problem with the xp-problems. I only program on an old laptop (486+, ideal for qbinux), with runs with only DOS.

grtz
Seb
So qbinux will be unusable in anything else than plan "vanilla" DOS..:(
Well, after all it will include a bunch of good tricks!
by Antoni
Fri Aug 05, 2005 8:09 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Graphic stuff
Replies: 7
Views: 9185

this works for me: width 80,25 Locate 23,1:?" <Tab>/<Alt-tab>"; Locate 24,1:?" <Tab>/<Alt-tab>"; Locate 25,1:?" <Tab>/<Alt-tab>"; No room between the 3 lines, and the bottom line is in the border of the screen. Just gave a semicolon after each print and never go beyond ...
by Antoni
Fri Aug 05, 2005 5:44 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Graphic stuff
Replies: 7
Views: 9185

I have had problems with line 25 scrolling, but I never had that line 25 not found you have.I have not used pure DOS since 1995...

What happens if you issue a WIDTH 80,25 before printing?
by Antoni
Fri Aug 05, 2005 4:53 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Graphic stuff
Replies: 7
Views: 9185

If you put a semicolon at the end of each PRINT and your lines don't overflow the allowed 80 chars, you should not have unwanted scrolls. This code does not scroll for me.( I'm in Windows 2000) It uses an 1 line bufer where everything is copied with LSET and MID$ (to avoid to change its size) before...
by Antoni
Thu Aug 04, 2005 9:02 am
Forum: QBASIC and QB64 Questions & Answers
Topic: controversy free question: DSOCK + DOS?
Replies: 11
Views: 12429

Someone (Sebasitian Mate?) did a pure DOS TCP-IP library for QB years before DSock, I remember it used an external TCP-IP lib, don't rememeber its name, but FB devs could use it. That QB library went unnoticed because of the install process of the TCP-IP lib was tricky, to use a soft expression... E...
by Antoni
Thu Aug 04, 2005 6:03 am
Forum: QBASIC and QB64 Questions & Answers
Topic: controversy free question: DSOCK + DOS?
Replies: 11
Views: 12429

AFAIK the author of Dsock is the same V1ctor who invented and is actively developping FB. Probably he is too busy now...

BTW, FB will have built-in internet support in the near future , I suppose the DOS version too.
by Antoni
Wed Aug 03, 2005 12:05 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Compile during runtime
Replies: 13
Views: 13233

Yes, it should work.
Try it first keying in the commands from a dos prompt, as you may have to specify paths.
by Antoni
Wed Aug 03, 2005 11:08 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Compile during runtime
Replies: 13
Views: 13233

Does it mean you have a sumfin.lib to link?

in that case it wuld be:

Code: Select all

bc /o myfile.bas,,;
link myfile.obj,,,path_to_bcom45.lib sumfin.lib ; 
by Antoni
Wed Aug 03, 2005 10:28 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Compile during runtime
Replies: 13
Views: 13233

Let me correct it..

Code: Select all

bc /o myfile.bas,,;
link myfile.obj,,,path_to_bcom45.lib;
Yes, that's all for a simple source, not using ON ERROR or "ON anything",and not using external libraries.

At the end you will have to delete a myfile.obj, myfile.map, and myfile.lst.
by Antoni
Wed Aug 03, 2005 9:52 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Compile during runtime
Replies: 13
Views: 13233

Code: Select all

bc myfile.bas,,;
link myfile.obj,,,path_to_bcom45.lib;
both BC.EXE and LINK.EXE are in the QB directory.

You have a complete description of QB's command line at
http://qbcm.hybd.net/issues/1-9/#btau
by Antoni
Wed Aug 03, 2005 3:49 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Input handler
Replies: 3
Views: 5882

1.-There are several multiple key handlers around. Here is one of them http://www.qbasicnews.com/abc/showsnippet.php?filename=KEYBOARD.ABC&snippet=30 It's an assembler interrupt service routine that hooks to the keyboard interrupt, don't forget to always disable it before exiting the program or ...
by Antoni
Thu Jul 28, 2005 6:57 am
Forum: QBASIC and QB64 Questions & Answers
Topic: ascii character code reference?
Replies: 4
Views: 9403

Code: Select all

do
 sleep
 a$=inkey$
 print
 for i=1 to len(a$)
  print asc(mid$(a$,i,1));" ";
 next
loop until asc(a$)=27