Microsoft used to recomend to use ENVIRON$:
-If the variable windir exists, you are in a shell in some version of windows (from 3.0 to XP)
-If the variable OS exists you are in windows NT-2000-XP
Not so accurate as SHELL "VER>file"...
Search found 132 matches
- Sat Dec 03, 2005 11:14 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Can QBASIC decect your OS
- Replies: 13
- Views: 21926
- Sat Dec 03, 2005 11:05 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: QuickBasic Compile with /mbf
- Replies: 7
- Views: 7881
- Sat Dec 03, 2005 10:45 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: odd or even
- Replies: 20
- Views: 33948
Guest: Nek's code works... if every variable is integer. You are probably using the QB defaults that make all variables floating point, so rounding errors may prevent the code from work. The easiest workaround is to put a pair of parentheses in the IF condition. berth = int(rnd * 16) + 5 if (berth A...
- Thu Dec 01, 2005 12:17 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Compatibility
- Replies: 15
- Views: 22139
- Wed Nov 23, 2005 2:20 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Graphical Utilities
- Replies: 2
- Views: 4664
For the QB bload format, you can use any editor, do a standard bmp, then use one of the qb programs that convert bmp to bload...
Here is one of them:
http://www.qb45.com/index.php?page=down ... oad&id=638
FreeBasic can bload standard bmp files so any editor is OK.
Here is one of them:
http://www.qb45.com/index.php?page=down ... oad&id=638
FreeBasic can bload standard bmp files so any editor is OK.
- Wed Nov 23, 2005 2:16 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Does Anyone Else Think It's Time
- Replies: 7
- Views: 12852
- Wed Nov 23, 2005 2:14 pm
- Forum: Freebasic Questions & Answers
- Topic: FreeBASIC stuff
- Replies: 10
- Views: 22393
If by loading you mean the program does not compile or does not run as expected, FB and QB differ in some aspects, you have the list here
http://www.freebasic.net/wiki/wikka.php?wakka=LangQB
BTW: A .bas file must be saved in text format to be readable by anything else than QB.
http://www.freebasic.net/wiki/wikka.php?wakka=LangQB
BTW: A .bas file must be saved in text format to be readable by anything else than QB.
- Wed Nov 23, 2005 2:09 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: BIOS Fonts
- Replies: 3
- Views: 6588
- Tue Nov 22, 2005 3:10 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Making your own fast font routine? (or speed up this one?)
- Replies: 8
- Views: 8957
- Mon Nov 21, 2005 3:00 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Need help finding strings
- Replies: 6
- Views: 6851
- Tue Nov 15, 2005 3:03 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Transparency?
- Replies: 11
- Views: 13070
Or use Plasma/Rel 's SuperPut
http://www.phatcode.net/downloads.php?id=166
It was very used just before FB sucked our brain
http://www.phatcode.net/downloads.php?id=166
It was very used just before FB sucked our brain
- Tue Nov 15, 2005 2:59 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: before starting
- Replies: 5
- Views: 7019
- Thu Nov 10, 2005 5:17 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Making your own fast font routine? (or speed up this one?)
- Replies: 8
- Views: 8957
- Wed Nov 02, 2005 2:33 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Counter counting by two?
- Replies: 3
- Views: 4300
- Tue Oct 25, 2005 2:02 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: BSAVE and BLOAD
- Replies: 5
- Views: 7803
- Tue Oct 25, 2005 1:54 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: PRINT Strings
- Replies: 5
- Views: 6522
- Wed Oct 19, 2005 10:38 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: check for file existence and then condition statement
- Replies: 30
- Views: 43312
In the ugly and powerless batch scripting language of DOS and W9x, zero length files were used by the more 1337 programmers to overcome the limitations of the language. Zero length files made good flags. And I remember a way to separe a file name from its extension using a dummy file and REN... I mu...
- Thu Oct 13, 2005 3:01 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Need a PLAY code... (read to find out which one)
- Replies: 29
- Views: 43870
I would be surprised if your sound was'nt here:
http://www.qbasicnews.com/abc/showsnipp ... snippet=19
http://www.qbasicnews.com/abc/showsnipp ... snippet=19
- Thu Oct 13, 2005 2:55 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: check for file existence and then condition statement
- Replies: 30
- Views: 43312
Well, you just want DEL not to mess your screen layout with it's error message if the file does not exist, is'nt?
In windows XP, 2000,( NT?) you can just redirect the error messages to the NUL device.
It will not work in W9x or DOS
In windows XP, 2000,( NT?) you can just redirect the error messages to the NUL device.
Code: Select all
SHELL "DEL /y README.TXT >NUL 2>&1"
- Tue Oct 11, 2005 9:37 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Several questions
- Replies: 10
- Views: 14799
Re: Several questions
I have a couple of questions. Firstly, I notice that well done games never have a problem with flicker. I've also noticed that in relsoft's polygon files, he uses something called the setvideoseg which seems to get rid of flicker and black blocks behind sprites. Can anyone give me anymore info on t...