Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:25 12 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 : Never noticed this before...

Author Message
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2171
Posted: 08:43pm 23 May 2019
Copy link to clipboard 
Print this post

... all this time... NEW clears Flash Variables.

> memory
Flash:
20K (13%) Program (801 lines)
1K ( 1%) 1 Embedded Fonts
2K ( 1%) 2 Saved Variables (1620 bytes)
121K (85%) Free

RAM:
0K ( 0%) 0 Variables
0K ( 0%) General
114K (100%) Free
> new
> memory
Flash:
0K ( 0%) Program (0 lines)
144K (100%) Free
<<<< Flash variables gone
RAM:
0K ( 0%) 0 Variables
0K ( 0%) General
114K (100%) Free
>


The MMBasic manual says NEW;
"Deletes the program in flash and clears all variables."

Is it worth fleshing that out a bit to mention an implicit VAR CLEAR too?

was trying to be clever and pass data between programs... Not so fast! The Flash Police caught me The above is on an F4 but it's only illustrative, the system I wanted to share on is a '170 - no SDCard

Edited by CaptainBoing 2019-05-25
 
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