02-12-2005, 05:05 AM
Pages: 1 2
02-19-2005, 02:50 PM
you are wrong about the line thing. You can have alot more the 255 or whatever ya said. Here is a link to a program made in qb 1.1 and is past the 255 and the 1000 mark and then goes back to 0 and continues on. you can use qb code and it will still work. Thats how I made a text adventure in 1 line, with 14 locations. The way ya do it is by puting the code under the code you want to make longer and then go to the start of the line and press backspace so that the second line joins to the end of the top line thus making the line longer.
www.geocities.com/sitenixon/LONG.BAS
www.geocities.com/sitenixon/LONG.BAS
02-19-2005, 04:49 PM
Yeah, but it is the compiler which doesn't take more than 256 chars. When you load that program in, say, PDS 7.1 and you hit on "Compile", the IDE splits the lines into 256 chars one using "_" and sends them to the compiler. Try compiling it from the command line: Call BC LONG.BAS /T/O/C:512 from the command line and see.
Code:
H:\>bc long.bas /t/o/c:512
Microsoft (R) QuickBASIC Compiler Version 4.50
(C) Copyright Microsoft Corporation 1982-1988.
All rights reserved.
Simultaneously published in the U.S. and Canada.
Object Filename [LONG.OBJ]:
Source Listing [NUL.LST]:
0030 0006 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk
lmnopqrstuvwxyzabcdefghijklmnopqrstuabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqr
stuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrst
uvwxyzabcdefghijklmnopqrstuvw
^ Line too long
Pages: 1 2