Search found 19 matches
- Wed Sep 22, 2010 3:38 am
- Forum: QBasic / QuickBasic related
- Topic: Truncating a binary file?
- Replies: 2
- Views: 2424
Re: Truncating a binary file?
The easiest way would be to open as binary, read in the entire file or the part you want to put out as the file, close the file, reopen as output and print to the file (ending with a semicolon) then, of course, close the file.
- Mon Jul 26, 2010 2:39 am
- Forum: QBasic / QuickBasic related
- Topic: The Obsolescence of QuickBasic
- Replies: 9
- Views: 5004
Try PowerBasic's Console Compiler. A true windows compiler with access to API but the look and feel of PowerBasic for DOS and therefore also QuickBasic. Now with a new Graphics screen that makes graphics easy as well as excellent third-party tools. Their support is the best. Take a look at their for...
- Mon Jul 26, 2010 2:30 am
- Forum: QBasic / QuickBasic related
- Topic: Printing To a Network/Shared Printer From QB45 W/ XP PRO SP3
- Replies: 18
- Views: 4559
If you have a network printer that is not on the local xp computer you should be able to use the NET USE command to redirect it to LPT1,2 or 3. For some reason, it seems you cannot redirect a network printer that is on your local computer which I've tried to do. But as long as it is physically on an...
- Wed Feb 24, 2010 9:55 am
- Forum: QBasic / QuickBasic related
- Topic: Looking to learn how to write QB
- Replies: 4
- Views: 1829
- Thu May 01, 2008 9:21 pm
- Forum: QBasic / QuickBasic related
- Topic: PLease Help
- Replies: 1
- Views: 1336
CLS PRINT TAB(22); "Selected Employees (SSN > 599999999)" PRINT Chead$ = "Name SSN WAGE" Uline$ = "---- --- ----" detline$ = "\ \ \ \ ##,###.##" detlin$ = " \ \##,###.##" tot! = 0 OPEN "test.txt" FOR INPUT AS #1 'H:\SWC\CIS101\prog\test.txt" FOR INPUT AS #1 PRINT TAB(13); Chead$; PRINT TAB(13); Uli...
- Sat Apr 26, 2008 12:23 am
- Forum: QBasic / QuickBasic related
- Topic: Hexadecimal Routines for QBasic
- Replies: 6
- Views: 5681
'show ascii values of hex st$="0C01E0000702250041052105A4040008C9" for k&=1 to len(st$) step 2 char$=mid$(st$,k&,2) value$="&H"+char$ print val(value$);" = ";char$ next 'basically anything below 32 is unprintable control characters 'however, if it is asm code you show perhaps look at it with debug Y...
- Tue Aug 07, 2007 8:57 am
- Forum: QBasic / QuickBasic related
- Topic: QBasic random access files, help needed.
- Replies: 4
- Views: 3289
- Mon Jun 11, 2007 3:09 pm
- Forum: QBasic / QuickBasic related
- Topic: qb 7.1
- Replies: 5
- Views: 5451
Generally speaking, it's a good idea to keep the application programs in the same directory (or subdirectory) of the main program directory. After compiling, you can place the compiled program anywhere you want as long as you link to the correct path for the exe file. One Caveat: If you compile it r...
- Mon Jun 11, 2007 12:25 am
- Forum: QBasic / QuickBasic related
- Topic: qb 7.1
- Replies: 5
- Views: 5451
A pif file is basically the MS-DOS answer to a link file (LNK) only has the extension pif. If you put it on the desktop then you can right click on it, go to properties and change the directory (folder) to the one you are using which apparently is different from what was included as the path in the ...
- Wed Jun 06, 2007 11:18 pm
- Forum: QBasic / QuickBasic related
- Topic: QBasic random access files, help needed.
- Replies: 4
- Views: 3289
Generally random files (fixed length files) are used with a type definition. Here are some program fragments. Not meant to be a running or complete program but to illustrate open/read/write functions with random files. Type InventoryStock PartNumber as string * 10 Description as String * 30 Cost as ...
- Sat May 26, 2007 7:22 am
- Forum: QBasic / QuickBasic related
- Topic: NEED HELP!
- Replies: 4
- Views: 1534
- Wed Jan 10, 2007 8:30 am
- Forum: QBasic / QuickBasic related
- Topic: QuickBasic 4.0 4.5 BOOK
- Replies: 7
- Views: 1878
I looked when i posted the other message and looked again but sorry to say, didn't find anything that resembled what you are looking for. I've got version 4 here too on the computer and it seems that the version 4 book was blue though im not certain it was the Ms book i saw. Actually, i had it at on...
- Wed Jan 10, 2007 4:35 am
- Forum: QBasic / QuickBasic related
- Topic: QuickBasic 4.0 4.5 BOOK
- Replies: 7
- Views: 1878
Ralph, when i bought QB4.5 some years ago (about 15 i think) it came with
a manual (i still have it) of more than 750 pages softbound. I have an icon
i made based on the cover of that book just to let you know it did have a
manual.
http://thunder.prohosting.com/oasys/frameex1.htm
a manual (i still have it) of more than 750 pages softbound. I have an icon
i made based on the cover of that book just to let you know it did have a
manual.
http://thunder.prohosting.com/oasys/frameex1.htm
- Sat Jan 06, 2007 5:48 am
- Forum: QBasic / QuickBasic related
- Topic: I need a sorting algorythm
- Replies: 6
- Views: 1890
Set up 3 arrays. test data. 1 Man-O-War $3,967,845 2 Swaps $2,897,136 3 Secretariat $10,145,873 4 Sunday Silence $265,972 array1$(1)="1":array1$(2)="2" etc array2$(1)="Man-O-War":array2$(2)="Swaps" etc. array3$(1)="3967845":array3$(2)="2987136" etc. then sort the 'array' that you want sorted and use...
- Mon Jan 01, 2007 6:52 am
- Forum: QBasic / QuickBasic related
- Topic: Is this Quickbasic?
- Replies: 10
- Views: 2734
A little history (by no means intended to be a complete history), GW-Basic from MS and BasicA (ibm or compaq) were early forms of basic for pcs. GW-Basic was included with MS-DOS up through version 4.x Beginning with version 5, MS changed to QBasic and marketed QuickBasic. Qbasic was included with t...