Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:17 01 Aug 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 : MMEdit thought.

Author Message
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 09:37pm 04 Jan 2018
Copy link to clipboard 
Print this post

Hi All,

Really for Jim this one.

I often lose track of "What" I have in some of my MM's; bad practice on my part...

I am currently doing this, just creating a Variable at the start; Comments don't work, as they get killed by Crunch...

'MMEDIT!!! Basic Version = Micromite_Plus_V5.2
'MMEDIT!!! Port = 192.168.59.184:23:30,150
'MMEDIT!!! Device = Micromite_Plus_V5.3
'MMEDIT!!! Config = 100111120121010110000000000001
Dim String Version="1.04"
' System and DGP code for Micromite MMBasic
' Acknowledements : Geoff Graham Geoffg.net
' Using work licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Australia (CC BY-NC-SA 3.0)
' Written by REF, Phil
' Ver 1.0 21/03/17
' Ver 1.1 22/03/17 more code added - Review by Phil, clean up syntax


I understand what Jim is doing with the first 3 lines, but wonder about the addition of another right at the beginning of the code; basically another string variable, that would have to be unused, something like:-

[Code]Dim SwDate$="05/01/2017 - 8:31:00"[/code]

End result would be that the first line of code viewed in the editor would indicated when the code was loaded.

Could also go a step further add a path,
(Realise Length could have issues) & have:-

[Code]Dim SwDate$="05/01/2017 - 8:31:00"
Dim SwPath$="G:\MicroMite Stuff\Code\Phils Code\Ceiling Heat Controller-DGP 1.04.bas"[/code]

Don't even know if it's a good idea or not, just thinking out loud.
Only real perpose would be their visibility in the internal editor, especially when the code is crunched.

Cheers

Phil.

Edited by Phil23 2018-01-06
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 11:15pm 04 Jan 2018
Copy link to clipboard 
Print this post

REM this will stay forever


MMEdit only crunches lines with a single quote remark, it leaves REM's alone

Jim
VK7JH
MMedit
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 10:04am 05 Jan 2018
Copy link to clipboard 
Print this post

Ahhh,

Thanks Jim,

Think my brain cells with REM in them died in the early Windows Days.

Phil
 
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