Search found 42 matches

by JasonQuinn1992
Tue Oct 16, 2012 5:37 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Syntax Error
Replies: 20
Views: 32603

that seems to work a little bit.... under my Print Detail couldnt I replace the H2$ with my my detail line, D1$ to print the data is straight columns...?? I ask because when I ran the program all my column headings where already printed I was just adding another header line can i post a pic of what ...
by JasonQuinn1992
Tue Oct 16, 2012 4:11 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Syntax Error
Replies: 20
Views: 32603

I retried your code and it worked! Now however I m not sure where to put my GOSUB to calculate the total price for all the cars within the Process Data?

And is there anyway to put the data into column form so they lineup with my headings?
by JasonQuinn1992
Tue Oct 16, 2012 1:00 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Syntax Error
Replies: 20
Views: 32603

I changed everything as you said and as I was told by my instructor but i keep getting error, either the syntax or type mismatch.... this time its type mismatch on this line.... READ man$, Yr, Make$, Model$, Desc$, Price$ and when i tried changing it to look like the "PRINT" line I got an ...
by JasonQuinn1992
Tue Oct 16, 2012 1:14 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Syntax Error
Replies: 20
Views: 32603

somehow Im getting a type mismatch error on

PRINT USING H2$; man$; Yr; Make$; Model$; Desc$; Price


I get that everything has to match and it is
by JasonQuinn1992
Mon Oct 15, 2012 10:22 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: End if Without Block If Error
Replies: 2
Views: 9076

I was able to get this program to run thanks! :)
by JasonQuinn1992
Mon Oct 15, 2012 10:07 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Syntax Error
Replies: 20
Views: 32603

I did that because i thought i would fix the syntax error but it didnt..... the type mismatch is resolved but now the syntax error is back on the READ man$, Yr, Make$, Model$, Desc$, Price line here is how I have my process code and read data: ProcessDetail: GOSUB ReadData DO UNTIL UCASE$(man$) = &q...
by JasonQuinn1992
Mon Oct 15, 2012 7:30 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Syntax Error
Replies: 20
Views: 32603

Now I get a Tpe Mismatch error error on this line:


PRINT USING H2$; man$; Yr; Make$; Model$; Desc$; Price$
by JasonQuinn1992
Mon Oct 15, 2012 5:02 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Syntax Error
Replies: 20
Views: 32603

OK so I should have it like this?

' Process Detail

ProcessDetail:
DO UNTIL UCASE$(man$) = "END"
GOSUB PrintDetail
GOSUB PrintTotals
LOOP
RETURN

' Read Input Data

GOSUB ReadData
PRINT man$, Yr, Make, Model, Desc, Price
by JasonQuinn1992
Mon Oct 15, 2012 1:59 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: End if Without Block If Error
Replies: 2
Views: 9076

End if Without Block If Error

I can't figure out why Im getting an error on this code:

READ A
IF A > 10 THEN PRINT "THAT'S IT" ELSE PRINT "MAYBE NEXT TIME"
END IF
DATA 15,0
by JasonQuinn1992
Mon Oct 15, 2012 1:53 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Syntax Error
Replies: 20
Views: 32603

Syntax Error

Why am I getting a syntax error on this line: " READ man$, Yr, Make, Model, Desc, Price" My code: ' Program that lists inventory for your collection of model cars ' ' ' ' Variables Used ' T1$, H1$, H2$, D1$ Print images ' TL$ Print images ' man$ Manufacturer # ' Yr Year Of Csr ' Make Make ...
by JasonQuinn1992
Wed Oct 03, 2012 9:11 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Subscript out Of Range??
Replies: 6
Views: 19600

Thank you so much that was exactly what I needed.. the program works perfectly :)
by JasonQuinn1992
Wed Oct 03, 2012 2:21 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Subscript out Of Range??
Replies: 6
Views: 19600

Ok, yeah.. I need spaces.... but when i try to run the program i still get an expected expression error and when i change it to SPC$ i get a subscript out of range error
by JasonQuinn1992
Wed Oct 03, 2012 11:07 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Subscript out Of Range??
Replies: 6
Views: 19600

Thank you for the reply, I tried getting rid of the "$" sign but then I get an error on SPC(16) stating Expected expression, so my program wont run.. how should I fix this?
by JasonQuinn1992
Tue Oct 02, 2012 10:32 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Subscript out Of Range??
Replies: 6
Views: 19600

Subscript out Of Range??

What does it mean if you get an error stating "Subscript out Of Range"? How would I fix it on this code: ' Initialize variables Pieces = -1 Pay# = 0 TotPieces = 0 TotPay = 0 T1$ = "PIECEWORK WEEKLY REPORT" H1$ = "NAME" + SPC$(16) + "Pieces" + SPC$(6) + "P...
by JasonQuinn1992
Tue Oct 02, 2012 7:18 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Illegal Function Call?
Replies: 4
Views: 10743

What you suggested seems to be working but now I get an Syntax error at the

READ Nam$, Num, AmountOwed line
by JasonQuinn1992
Tue Oct 02, 2012 1:30 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Illegal Function Call?
Replies: 4
Views: 10743

After I did as you suggested im getting an error stating, "expected: tab or spc or expression or end of statement"



Also,
Then im getting a Syntax error at the

READ Nam$, Num, AmountOwed line
by JasonQuinn1992
Tue Oct 02, 2012 12:37 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Illegal Function Call?
Replies: 4
Views: 10743

Illegal Function Call?

Hey guys, Im writing a program for my BASIC class and have suddenly gotten an "Illegal Function Call" error on one of the lines and I really dont know why The error occurs at the "PRINT USING T1$; PageCt 'Print title line" line ' MINITEST 2 ' Variables Used: ' T1$, H1$, H2$, D1$ ...
by JasonQuinn1992
Fri Sep 28, 2012 1:30 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Type MisMatch Error?
Replies: 2
Views: 9448

Thanks for the replay, I tried your suggest and was able to get the program to run
by JasonQuinn1992
Wed Sep 26, 2012 2:48 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Type MisMatch Error?
Replies: 2
Views: 9448

Type MisMatch Error?

Why am I getting a type mismatch error on the following code? How do i fix it? ************************************************************** REM The purpose of this program is to utilize The STRING$ Function REM ************************************************************** REM REM CLS LET WORD$ = ...
by JasonQuinn1992
Thu Sep 06, 2012 2:13 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Can you please double check this code...
Replies: 1
Views: 7095

Can you please double check this code...

Hey guys, its me again, im taking a BASIC class in college and am having trouble with it for some reason... the assignment is was given was to write a program that will request length and width of a rectangle until 0 is entered for either the length or width. here is the code i am supposed to follow...