![]() |
Forum Index : Microcontroller and PC projects : MMEdit thought.
Author | Message | ||||
Phil23 Guru ![]() Joined: 27/03/2016 Location: AustraliaPosts: 1667 |
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. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
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: AustraliaPosts: 1667 |
Ahhh, Thanks Jim, Think my brain cells with REM in them died in the early Windows Days. Phil |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |