Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Placing Remarks in files...
#1
Is there a way that I could place remarks in file without the program thinking it's code? I could get this to work if I could figure out how to make QB skip over a line of code...
Reply
#2
REM it. Or just use ' (works just like // in C)
Reply
#3
I don't think he meant code in the file, did he?

To skip code after LINE INPUT #1, temp$, do this:
Code:
exists% = INSTR(temp$, "'")
temp$ = mid$(temp$,exists%+1)

That should be good enough if you don't have a comment symbol inside quotes. Otherwise it gets more complicated..
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)