Search found 4 matches

by Sunzoner
Fri Jun 12, 2009 5:04 am
Forum: QBASIC and QB64 Questions & Answers
Topic: HELP! ATTACKING COMMAS!!!!!!!!!!!!!!!!!!!!!
Replies: 11
Views: 16234

Naw, you gotta use LINE INPUT #1, text$ Anytime you PRINT # to a file, just get the entire line! It works just like LINE INPUT works instead of INPUT. You always get a STRING value back with LINE INPUT either way. INPUT #1 can be used to get back Comma Separated Values from Data files that are made...
by Sunzoner
Sat Mar 07, 2009 9:24 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Nightwolf Productions's scripting tutorial
Replies: 6
Views: 15547

Thanks for all the suggestions.

I found out what was wrong with my code.

I should have used ReadLine$ instead of ReadList$ on line 6...

Will try the other suggestions when proceeding futher.

Thanks again for the suggestions.
by Sunzoner
Fri Mar 06, 2009 8:02 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Nightwolf Productions's scripting tutorial
Replies: 6
Views: 15547

I was following the script in the QB times... See the code below. OPEN "script.dat" FOR INPUT AS #1 DO INPUT #1, ReadLine$ ReadLine$ = LTRIM$(RTRIM$(ReadLine$)) IF LEFT$(ReadLine$, 11) = "DISPLAYTEXT" THEN Temp1$ = RIGHT$(ReadList$, LEN(ReadLine$) - 12) PRINT Temp1$ END IF IF LEF...
by Sunzoner
Thu Mar 05, 2009 11:10 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Nightwolf Productions's scripting tutorial
Replies: 6
Views: 15547

Nightwolf Productions's scripting tutorial

Hi. I'm quite a newbie in qbasic and wanted to find a quick and fast way to write a game that would run on user submitted scripts. I was going through the Nightwolf Productions scripting tutorial (From QBtimes issue 1) when I realise there is no output to screen when I run the program. The problem d...