|
Forum Index : Microcontroller and PC projects : PicoMite line break
| Author | Message | ||||
| PilotPirx Senior Member Joined: 03/11/2020 Location: GermanyPosts: 105 |
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 KingdomPosts: 8298 |
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 KingdomPosts: 10617 |
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: GermanyPosts: 494 |
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 KingdomPosts: 10617 |
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 KingdomPosts: 8298 |
@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 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |