Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:41 20 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : PicoMite line break

Author Message
PilotPirx

Senior Member

Joined: 03/11/2020
Location: Germany
Posts: 105
Posted: 01:40pm 05 Jan 2022
Copy link to clipboard 
Print this post

Hello,

i have used the "Calculate Days" example from the PicoMite manual and have the following problem:
The editor shows me only 80 characters. If I make a line break as described, I get a syntax error.

LOCAL STRING Month(11) =
("jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec")

If I put everything in one line it works, but the editor does not show me the end of the line. I can use Options to increase the number of characters up to 132, but what about line lengths between 133 and 255?
How do I create a line break without a syntax error?

Thanks for this great basic implementation  
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8298
Posted: 02:15pm 05 Jan 2022
Copy link to clipboard 
Print this post

That looks like a break that was auto-inserted when the code was being printed as the text including brackets has no spaces.

To be able to enter long lines you need to do two things. Set your terminal line length high enough and use OPTION DISPLAY to set your editor to the same settings. The maximum you'll be able to manage is limited by the size of your monitor and the font number you are using.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10617
Posted: 02:21pm 05 Jan 2022
Copy link to clipboard 
Print this post

The limit of 132 has always bene in MMBasic - don't know why. I've asked Geoff if there is any reason I can't think of and if not will increase it.

This really only affects the presetting of arrays which is a comparatively new capability in MMBasic. Of course the workaround is to use the DATA and READ commands.

There is not and will never be a line continuation character in MMBasic itself - completely incompatible with the way the code works
 
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 494
Posted: 10:39pm 06 Jan 2022
Copy link to clipboard 
Print this post

PicoMite line break with an underscore _
would generally be ingenious. It has also happened to me that the lines on the Picomite were too short. And I didn't manage to continue the command in the next line. Or is there another possibility and I don't know it?
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10617
Posted: 10:46pm 06 Jan 2022
Copy link to clipboard 
Print this post

There is not and will never be a line continuation character in MMBasic - completely incompatible with the way the code works
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8298
Posted: 11:14pm 06 Jan 2022
Copy link to clipboard 
Print this post

@home
No. You can't use a line continuation like that in MMBasic. It's simply not supported and, apparently, never will be.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025