Search found 2466 matches

by burger2227
Sun Aug 31, 2008 1:42 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: showbmp works but need help with it
Replies: 1
Views: 4573

Try a TYPE to get the Bitmap header information

TYPE BMPHeaderType 'BITMAP HEADER TYPE ID AS STRING * 2 'File ID is "BM" size AS LONG 'Size of the data file Res1 AS INTEGER 'Reserved 1 should be 0 Res2 AS INTEGER 'Reserved 2 should be 0 Offset AS LONG 'Position of start of pixel data Hsize AS LONG 'Information header size PWidth AS LON...
by burger2227
Mon Aug 25, 2008 1:58 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: No " .exe" !
Replies: 23
Views: 35905

NOPE, I don't do Windows! Ask my landlord :-)
by burger2227
Sun Aug 24, 2008 7:20 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: No " .exe" !
Replies: 23
Views: 35905

GRRRRR

If he can't even find his My Documents folder, then I imagine he doesn't know where his QB and PDS files are installed either.

I would try to figure out Windows Explorer first! Get some Windows lessons son!

Ted
by burger2227
Sun Aug 24, 2008 11:10 am
Forum: QBASIC and QB64 Questions & Answers
Topic: No " .exe" !
Replies: 23
Views: 35905

My Qb45 files are in folders too, but that may confuse some people. The best thing is for all files to be in the same folder if you are having path problems! Also I only run programs in QB from my Basic Folder when they have data or image files to reference. QB will always look for files in it's fol...
by burger2227
Tue Aug 19, 2008 2:57 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Someone can helpme and tell me that this program works well
Replies: 6
Views: 11214

The following Function converts any decimal Integer number (decnum&) to any base number (CBase%) up to 10 as a string number. Can be adapted to handle string entry parameters also with VAL. FUNCTION Dec2Base$(decnum&, CBase%) DO remain% = decnum& MOD CBase% 'remainder sets next digit dec...
by burger2227
Sun Aug 17, 2008 3:16 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: No " .exe" !
Replies: 23
Views: 35905

There are 11 LIB files

Where are these two files?

BCL71ENR.LIB and BRT71ENR.LIB

They MUST be in the same Folder as QBX.EXE and the module you compile!

Ted
by burger2227
Sat Aug 16, 2008 5:42 pm
Forum: News and Announcements
Topic: Function: Separate the integer part of the fractional part
Replies: 8
Views: 21086

Hmmmmmmmmmm.........

Code: Select all

FUNCTION IntegerOnly% (dec!)
decimal$ = LTRIM$(STR$(dec!))

FOR i = 1 to LEN(decimal$)
     Temp$ = MID$(decimal$, i, 1)
     IF Temp$ = "." THEN EXIT FOR
NEXT

IntegerOnly% = VAL(MID$(decimal$), 1, i - 1)

END FUNCTION 
by burger2227
Sat Aug 16, 2008 10:41 am
Forum: QBASIC and QB64 Questions & Answers
Topic: No " .exe" !
Replies: 23
Views: 35905

Is the program in the same folder as QBX.EXE? Did you create a Shortcut to QBX.EXE? You can place the path into each of the Paths listed in Menu Options too. Sometimes Windows may run the wrong instance of QBX.EXE if it is in more than one folder.

Ted
by burger2227
Sun Aug 10, 2008 9:18 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: OUT OF STRING SPACE andOUT OF DATA SPACE
Replies: 15
Views: 27129

I think he is talking about sorting a 3 dimensional array.

I sure hope he finds that CAP LOCK key and quits yelling at us!
by burger2227
Sat Aug 09, 2008 3:39 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: No " .exe" !
Replies: 23
Views: 35905

Some programs are just too large to compile, but you may be able to see the errors better if you compile and don't exit. There may be some other errors built in that only show on compiling. As for My Documents, I forget where it is on a 95 machine. Find the folder on your computer and copy the path ...
by burger2227
Fri Aug 08, 2008 6:27 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: OUT OF STRING SPACE andOUT OF DATA SPACE
Replies: 15
Views: 27129

??????

What error code is returned for "Out of Data Space"?

Never saw it listed anywhere.
by burger2227
Thu Aug 07, 2008 11:40 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: OUT OF STRING SPACE andOUT OF DATA SPACE
Replies: 15
Views: 27129

STRINGs

String Space cannot exceed 32,767 string characters, whether printed or kept in an Array. If you have 4K elements how long are the strings held in them? Each character of a string takes 1 byte of memory. To reduce memory type problems, etc. try creating some SUB programs. SUBs release the memory use...
by burger2227
Tue Aug 05, 2008 12:58 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 95699

There is a problem using INP(&H60) with the Arrow keys. It seems that the arrow keys are designated as added keys and not only returns the correct scancode. but 224 also. Plus the numberlock mode may send back a 170 release code in either mode. The number lock keyboard arrows do not have this pr...
by burger2227
Mon Aug 04, 2008 9:22 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 95699

Screen 7 has pages 0 up to 7, or 8 pages you can draw small areas. Just add pieces at a time to make it look like it is scrolling. Naturally you could also use the pages to add background stuff, like bushes or hazards. You could also use WAIT to decrease flicker. A BIG PROJECT! I don't do games ofte...
by burger2227
Mon Aug 04, 2008 7:16 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 95699

I think redrawing the entire screen is AWFUL slow to begin with! Moving the background and not the character is biting off way more than you can probably chew. Perhaps you should rethink the whole idea. This stuff is not for the weak of heart or beginners! Try page flipping in SCREEN 7. (16 colors) ...
by burger2227
Mon Aug 04, 2008 2:33 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Library
Replies: 3
Views: 7026

Interrupt is a good example of a Library that is used in QB 4.5. To use Absolute or Interrupt in QB45, you need to load the QB Library. That only involves adding /L to the QB.EXE command line, batch file or shortcut: QB.EXE /L For Interrupt you can also '$INCLUDE: 'QB.BI' at the start of a program t...
by burger2227
Fri Aug 01, 2008 2:38 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: BITS and BYTES
Replies: 4
Views: 8077

Here is another demo of how string characters are used in PAINT: SCREEN 13 PAINT (160, 100), CHR$(1) + CHR$(2), 15 PRINT "The pattern" DO: LOOP WHILE INKEY$ = "" CLS LINE (0, 50)-(319, 50), 1 PRINT "A line" DO: LOOP WHILE INKEY$ = "" PAINT (160, 100), CHR$(1) ...
by burger2227
Thu Jul 31, 2008 8:26 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 95699

Try using BSAVE files and BLOAD. GET can load the info into an Array and then you can BSAVE that info to a file. To Load a portion, just BLOAD it back and PUT it again. BLOAD and PUT work very fast. Naturally, you may need a large integer Array, according to GET area size and screen mode. Use DEFINT...
by burger2227
Thu Jul 31, 2008 5:32 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 95699

NOPE

PUT and GET must use Coordinates on the screen. Otherwise you get an error! If you cannot see the stuff, you cannot GET it and why do you want to PUT things offscreen?

Ted
by burger2227
Thu Jul 31, 2008 1:39 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Understanding code
Replies: 8
Views: 10131

They gotta be somewhere

Those could just be other Functions using DEF FN. This format is still useable in QB. Probably GWBasic if it has line numbers. DEF FNH (parameters) 'Function's code END DEF In the program code after the function, you just use FNH(parameters) You may have to place the value into another variable like...