Max line length

Working on new editor enhancements?
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Max line length

Post by Tranquil »

Is it possible that the IDE does not support lines with more then 250 Characters?

If I try to modify an existing line (an SQL command string) it is cutted on the right at position 250.
Tranquil
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

I know this may not be an answer to your question but...

For readability, I usually concatenate SQL query string so they don't go past the edge of my screen.


Query.s = "Select title,author,publisher,item,category,duedate,borrowedon"
Query.s + "from library, Where record = '" +record.s + "'"


Just found this to be more readable.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

Maybe,

Did you try CodeCaddy and the Escape character ?

Code: Select all

QUERY.s = "_
SELECT title, author, publisher, item, _
FROM library _
WHERE record = '" + record + "'" 
:roll:
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
freak
PureBasic Team
PureBasic Team
Posts: 5941
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

It is an issue with the Scintilla scrollbars.
Just put the cursor on the long line and hit the 'End' key, and you should be able to see the whole line.
quidquid Latine dictum sit altum videtur
User avatar
Michael Vogel
Addict
Addict
Posts: 2807
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

btw. the IDE seems to support longer lines than the compiler, I tried to assign a long string to a global variable (in my case it have been 10.000 ciphers of Pi), in the editor it seems to be ok, but the compiler did not like that...
Post Reply