Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:38 27 Nov 2024 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 : Line is too long?

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9307
Posted: 11:16pm 01 Mar 2013
Copy link to clipboard 
Print this post

In CMM, MMBASIC reports that a certain line is too long, yet it executes just fine.

I cannot edit past column 81, but the code still runs.

LIST also shows the full line, but the editor will not.

Why?

NOT a criticism, just an observation.

MMBASIC 4.3 on CG CMM.Edited by Grogster 2013-03-03
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6099
Posted: 10:07am 02 Mar 2013
Copy link to clipboard 
Print this post

The maximum length of a line is 255 characters but the Editor is limited to 80, the maximum width of the screen.
If you edit outside the built-in editor, you can make your lines longer but this would make using the built-in editor troublesome so it is advisable to keep all lines within the 80 character limit.

Jim


VK7JH
MMedit   MMBasic Help
 
shoebuckle
Senior Member

Joined: 21/01/2012
Location: Australia
Posts: 189
Posted: 11:04am 02 Mar 2013
Copy link to clipboard 
Print this post

You can still use the Editor to add to or change long lines. Move the cursor towards the end of the line and press enter to split the line. Characters after col 80 will move to the next line and you can edit them there. When you are finished, delete the Enter to rejoin the line. Simple.
Cheers,
Hugh
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9307
Posted: 07:48pm 02 Mar 2013
Copy link to clipboard 
Print this post

I split the line into two, so that it can be properly edited. :)


Smoke makes things work. When the smoke gets out, it stops!
 
Print this page


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

© JAQ Software 2024