Search found 19 matches

by buff1
Wed Sep 22, 2010 3:38 am
Forum: QBasic / QuickBasic related
Topic: Truncating a binary file?
Replies: 2
Views: 3080

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.
by buff1
Mon Jul 26, 2010 2:39 am
Forum: QBasic / QuickBasic related
Topic: The Obsolescence of QuickBasic
Replies: 9
Views: 6797

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 ...
by buff1
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: 7743

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 ...
by buff1
Wed Feb 24, 2010 9:55 am
Forum: QBasic / QuickBasic related
Topic: Looking to learn how to write QB
Replies: 4
Views: 2619

You can probably find some good books for Qbasic/QuickBasic at your library if it is of any size. There has been many written for it.
by buff1
Thu May 01, 2008 9:21 pm
Forum: QBasic / QuickBasic related
Topic: PLease Help
Replies: 1
Views: 1902


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 ...
by buff1
Sat Apr 26, 2008 12:23 am
Forum: QBasic / QuickBasic related
Topic: Hexadecimal Routines for QBasic
Replies: 6
Views: 7001

'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 ...
by buff1
Tue Aug 07, 2007 8:57 am
Forum: QBasic / QuickBasic related
Topic: QBasic random access files, help needed.
Replies: 4
Views: 4643

Yes. I have clients, i'll send an update to fix a problem and they never get
back to me unless there's another problem. Of course, that usually means
it's ok but one still likes to be told thanks every now and then. LOL.
by buff1
Mon Jun 11, 2007 3:09 pm
Forum: QBasic / QuickBasic related
Topic: qb 7.1
Replies: 5
Views: 6486

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 ...
by buff1
Mon Jun 11, 2007 12:25 am
Forum: QBasic / QuickBasic related
Topic: qb 7.1
Replies: 5
Views: 6486

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 ...
by buff1
Wed Jun 06, 2007 11:18 pm
Forum: QBasic / QuickBasic related
Topic: QBasic random access files, help needed.
Replies: 4
Views: 4643

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 ...
by buff1
Sat May 26, 2007 7:22 am
Forum: QBasic / QuickBasic related
Topic: NEED HELP!
Replies: 4
Views: 2158

If you are using Qbasic it's not there. It's only in QuickBasic that comes
with a compiler.
by buff1
Wed Jan 10, 2007 8:30 am
Forum: QBasic / QuickBasic related
Topic: QuickBasic 4.0 4.5 BOOK
Replies: 7
Views: 2764

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 ...
by buff1
Wed Jan 10, 2007 4:35 am
Forum: QBasic / QuickBasic related
Topic: QuickBasic 4.0 4.5 BOOK
Replies: 7
Views: 2764

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
by buff1
Sat Jan 06, 2007 5:48 am
Forum: QBasic / QuickBasic related
Topic: I need a sorting algorythm
Replies: 6
Views: 2736

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 ...
by buff1
Mon Jan 01, 2007 6:52 am
Forum: QBasic / QuickBasic related
Topic: Is this Quickbasic?
Replies: 10
Views: 3875

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 ...