Search found 13 matches
- Mon May 15, 2006 3:14 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Inventory Program- help?
- Replies: 10
- Views: 14465
Modified Code
Sorry Moneo, Here it is again: COLOR 15, 1 CLS DIM ladder AS STRING 'ladder name DIM length AS INTEGER 'length of ladder DIM choice AS INTEGER 'menu choice DIM x AS INTEGER 'loop variable DIM sp AS INTEGER 'space DATA "Fiberglass Step",6 DATA "Aluminum Extension",6 DATA "Alu...
- Mon May 15, 2006 3:11 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Help with Invoice Program
- Replies: 9
- Views: 19739
- Sun May 14, 2006 1:45 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Help with Invoice Program
- Replies: 9
- Views: 19739
syntax error on READ and Type Mismatch on Print Using
I made the modifications to the code that you suggested, but on the READ statement inside of the loop, I recieve a Syntax error. Also, I have rarely been able to actually use the PRINT USING datastring because of the type mismatch error.....??
- Sun May 14, 2006 1:37 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Inventory Program- help?
- Replies: 10
- Views: 14465
data not printed in output
Good Morning Moneo, Thank you for your help. I swapped my FOR NEXT code for your BEGIN code, and in case one, the ouput is correct. However, I did the same swap with the CASE 2 code, and replaced "Extension" with "Step", and I get no output. Also, with your help, Case 3 is no lon...
- Sun May 07, 2006 8:28 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Help with Invoice Program
- Replies: 9
- Views: 19739
Invoice Program
Thank you Moneo. This program is becoming quite a pain. It runs as is, but only displays the first set of data....six times. I can see the PRINT MASK as an improvement, but my WHILE statement really needs help. Do you have any more suggestions?
- Sun May 07, 2006 4:54 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Help with Invoice Program
- Replies: 9
- Views: 19739
Help with Invoice Program
I'm also trying to create a program that outputs data into an invoice format. Any suggestions? CLS DIM item AS STRING 'item sold DIM specs AS STRING 'specifications of item DIM price AS SINGLE 'price of item DIM subtotal AS SINGLE 'subtotal of items purchased DIM tax AS SINGLE 'sales tax of items pu...
- Sun May 07, 2006 2:08 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Inventory Program- help?
- Replies: 10
- Views: 14465
Inventory Program- help?
I'm trying to create a 'simple' program that allows the user to select a specific type of ladder out of data that has different types. In the first "case" or, if the user selects #1 from the menu, the output should read "Extension Ladders 6 ft aluminum 10 ft aluminum 8 ft aluminum&quo...
- Sun Apr 23, 2006 3:58 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Type mismatch error
- Replies: 2
- Views: 5830
- Sun Apr 23, 2006 2:29 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Type mismatch error
- Replies: 2
- Views: 5830
Type mismatch error
COLOR 7, 0 CLS DIM b AS STRING 'border drawing character DIM contestant AS STRING 'contestant name DIM prize AS INTEGER 'prize won DIM prizetext AS STRING 'prize won text DIM printstr AS STRING 'print string DIM x AS INTEGER 'loop variable DATA "Jim Jone", 4 DATA "Nancy Nice", 2 ...
- Fri Mar 31, 2006 1:03 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Syntax Error #2
- Replies: 3
- Views: 6079
- Fri Mar 31, 2006 12:13 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Syntax Error #2
- Replies: 3
- Views: 6079
Syntax Error #2
Hi again. I can't seem to figure out READ statments. In the following code (about the middle), I get a syntax error on the line "READ city, pop". Any ideas are appreciated! COLOR 15, 1 CLS DIM pass AS STRING 'password DIM ct AS INTEGER 'counter INPUT "Password: ", pass 'enter pas...
- Sun Mar 12, 2006 3:33 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: syntax error
- Replies: 3
- Views: 5625
syntax error
I just checked my actual code in Qbasic, and I do have the comma separating each of the variables after READ.....any other ideas?
- Sun Mar 12, 2006 2:32 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: syntax error
- Replies: 3
- Views: 5625
syntax error
:?: Thanks for your help! The program is running now, with one minor problem. In the output screen, one of the Datas is listed twice- Stella Star 15.95 45 121.22 636.40 Stella Star 15.95 45 121.22 0 How do I correct this? I only need the top entry for Stella. CLS DIM emp AS STRING DIM wage AS SINGLE...