Search found 95 matches
- Mon Jan 06, 2003 12:59 am
- Forum: QBasic / QuickBasic related
- Topic: Plotting text to a graphics screen
- Replies: 5
- Views: 1304
Re: Plotting text to a graphics screen
This Should do it: DECLARE SUB FPRINT (X%, Y%, TEXT$, col%) DECLARE FUNCTION numstr$ (numin%) DIM SHARED SMFONT$(48 TO 90) 'This Stuff Loads All the characters SMFONT$(48) = "D4 R4 U4 L4 R4 G4 E4 BR3" '0 SMFONT$(49) = "BD1 R1 D3 L1 R3 L1 U4 BR4" '1 SMFONT$(50) ...
- Mon Jan 06, 2003 12:51 am
- Forum: QBasic / QuickBasic related
- Topic: Boundries
- Replies: 1
- Views: 819
Re: Boundries
Well, i assume it looks kinda like this?
IF POINT (X + 1,Y) = COLOR THEN
USE SUMTHIN LIKE THIS
IF POINT (X + spd, Y) = COLOR
IF POINT (X + 1,Y) = COLOR THEN
USE SUMTHIN LIKE THIS
IF POINT (X + spd, Y) = COLOR
- Sun Dec 29, 2002 8:08 am
- Forum: QBasic / QuickBasic related
- Topic: Help me
- Replies: 2
- Views: 946
Re: Help me
I believe that should work for every screen mode, well the general idea, i think u need to use &HA000, at least for screen 13H
- Wed Dec 18, 2002 3:48 am
- Forum: QBasic / QuickBasic related
- Topic: DOS printers
- Replies: 4
- Views: 1186
Re: DOS printers
You Probably wont like this, but ur best bet if you want to print your source code, is to save the file as a txt (ASCII) file and open it in note/word pad and print from there.
- Wed Dec 18, 2002 3:21 am
- Forum: QBasic / QuickBasic related
- Topic: Chaining
- Replies: 2
- Views: 1165
Re: Chaining
The program you chain to when main module is compiled and run as exe must be an exe. check the help section on CHAIN in QB's online help. why do u want to chain, is the module your chaining to too large to be in the same program?
- Mon Dec 16, 2002 3:22 pm
- Forum: QBasic / QuickBasic related
- Topic: Newbie - RUNPROGRAM Question
- Replies: 3
- Views: 1254
Re: Newbie - RUNPROGRAM Question
the problem is in the way qbasic's run statement works. it is designed to run a program without parameters. form the help on run: RUN "CATCHALL" would execute CATCHALL.EXE from a BC-compiled program, and CATCHALL.BAS from within QuickBASIC. Programs running within the QuickBASIC environment mu...
- Fri Dec 13, 2002 4:34 am
- Forum: QBasic / QuickBasic related
- Topic: PLEASE HELP ME! :S
- Replies: 2
- Views: 1167
Re: PLEASE HELP ME! :S
Ok, your problem is simple, i took out a comment on a return statement that seemed in error, and got passed a syntax error problem. your out of range comes from this little section ¦'********PRINT*** _ ¦PRINTIT: ...
- Fri Dec 13, 2002 4:18 am
- Forum: QBasic / QuickBasic related
- Topic: Using Variance Formulas in QBasic Programs
- Replies: 5
- Views: 6326
Re: Using Variance Formulas in QBasic Programs
Well, you need to use a loop like DO INPUT "GRADE" G(i) i = i + 1 LOOP instead of READ G(i) also, you need to output what the sentinel, or terminating input is ie: LIMIT = 100 ' max number of grades to be entered DIM g(LIMIT - 1) print "ENTER "101" to end. i = 0 DO INPUT "GRADE", grade if gra...
- Thu Dec 05, 2002 3:57 am
- Forum: QBasic / QuickBasic related
- Topic: Yet Another question for you experts...
- Replies: 1
- Views: 986
Re: Yet Another question for you experts...
I really am not sure how string memory works, but ive found (by opening an EXE in notepad out of curiosity) that most of the text strings entered are readable and not just jibberish ascii data. So, i would GUESS that no, it would not be worth it. I DO NOT know for sure. USE the fre() function to sho...
- Thu Dec 05, 2002 3:53 am
- Forum: QBasic / QuickBasic related
- Topic: DOS printers
- Replies: 4
- Views: 1186
Re: DOS printers
well, it all depends on the communications cable used, if it is LPT or SERIAL, than it is probably compatible with DOS, if it is USB or sumthing else, than forget it.
note: some USB printers have a LPT cable port as well
note: some USB printers have a LPT cable port as well
- Thu Dec 05, 2002 3:51 am
- Forum: QBasic / QuickBasic related
- Topic: Print Screen
- Replies: 2
- Views: 1148
Re: Print Screen
I am not familiar with XP, but if it is anything like its predeccessors, then when QB is in full screen, press ALT-ENTER to make it a window, and use your mouse to click and drag select the screen, press copy, then paste into notepad to for text only, or paint for as is, then print from there, yes i...
- Wed Dec 04, 2002 3:18 pm
- Forum: QBasic / QuickBasic related
- Topic: need help please
- Replies: 6
- Views: 1623
Re: need help please
Ok, providing that the file's numbers are all seperated by ONLY spaces OR commas, CR+LF: TYPE DATE DAY AS INTEGER MONTH AS INTEGER YEAR AS INTEGER END TYPE DIM THISDAY AS DATE MANYTEAMS% = 4 DIM TEAMPLAY( 1 to MANYTEAMS) as int FOR COUNT = 1 to MANYTEAMS TEA...
- Thu Nov 28, 2002 6:15 pm
- Forum: QBasic / QuickBasic related
- Topic: putting a .bmp at point (x,y)
- Replies: 1
- Views: 1528
Re: putting a .bmp at point (x,y)
Well, i really dont know anything much about bitmaps, but i do know there are code snippets out there, in the ABC packets, on websites, ect, that will do that for you. I have used bitmaps in qbasic before, and the process always looks long, and almost always requires you to change the palette to mat...
- Mon Nov 25, 2002 3:21 pm
- Forum: QBasic / QuickBasic related
- Topic: -
- Replies: 1
- Views: 1215
Re: Loading text files
Ok well, the easiest way, if you only want to display lines on screen, is to use OPEN "file.fle" FOR INPUT AS #1 FOR line input #1, TEXT$ PRINT TEXT$ NEXT you can also try input# for space or comma delimited values. in the online help: LINE INPUT # - a file I/O statement that reads an entire line wi...
- Mon Nov 25, 2002 2:17 am
- Forum: QBasic / QuickBasic related
- Topic: Memory
- Replies: 3
- Views: 1257
Re: Memory
Yes, that is correct, variable length strings require 4 bytes for the descriptor, and one byte afterwords, fixed only use 1 byte each character.
You can find all the data type memory requirements in Qb's Online Help under CONTENTS --> DATA TYPES --> Variable-Type Memory Requirements.
You can find all the data type memory requirements in Qb's Online Help under CONTENTS --> DATA TYPES --> Variable-Type Memory Requirements.