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 : MMBasic for Windows - betas
Page 26 of 30 | |||||
Author | Message | ||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6098 |
Any device that is using a terminal will depend on terminal line-ending setting. Jim VK7JH MMedit MMBasic Help |
||||
Turbo46 Guru Joined: 24/12/2017 Location: AustraliaPosts: 1611 |
Thanks Phil and Jim, I'm not sure what you mean by: But I get this when I enter it at the input prompt: Which NOT what I see when doing it in a program. Bill Keep safe. Live long and prosper. |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9119 |
That's because at the command prompt you get a new prompt after every statement Try Print "Hello"; at the command prompt |
||||
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 3802 |
Looks like confusion between a stored program (which you can EDIT) and immediate mode commands (typed at the > prompt). The program you can LIST, EDIT, etc. The typed-in commands are executed and then gone (may be recalled via the OS e.g. using uparrow). John Edited 2023-06-08 18:15 by JohnS |
||||
Turbo46 Guru Joined: 24/12/2017 Location: AustraliaPosts: 1611 |
Thanks Peter, I did expect that at the command prompt but I never have seen any BASIC program not do a new line after the response to an INPUT statement. Bill Keep safe. Live long and prosper. |
||||
thwill Guru Joined: 16/09/2019 Location: United KingdomPosts: 4040 |
I think Bill is correct, MMB4W is misbehaving: I typed "foo" at the INPUT prompt and then Enter ... it should have inserted a newline and printed the second "foo" on the next line. Best wishes, Tom Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
Turbo46 Guru Joined: 24/12/2017 Location: AustraliaPosts: 1611 |
Thanks Tom, I really don't know why it hasn't been noticed before. Bill Keep safe. Live long and prosper. |
||||
JanVolk Senior Member Joined: 28/01/2023 Location: NetherlandsPosts: 144 |
I've been doing some testing with the GUI commands for MMB4W and it works very well so far. That is why I do not understand that all these extra settings are not included in the standard manual if you want to quickly consult the manual and then run into all kinds of references. For myself I translated the pdf files into Dutch because my English is not so good with many examples. I also adapted Notepad++ for the Syntax to MMB4W which is now a party for programming with MMB4W. See here the example program by Geoff Graham from 2015 which works perfectly with MMB4W and you will not easily see the extra functions and commands with only the MMB4W manual. pomp.zip Jan |
||||
JanVolk Senior Member Joined: 28/01/2023 Location: NetherlandsPosts: 144 |
An example of what this looks like for me. Jan |
||||
Turbo46 Guru Joined: 24/12/2017 Location: AustraliaPosts: 1611 |
I agree that is a nuisance but I presume it was done to reduce duplication. The manual for MMB4W was based on the CMM2 manual which did not include the GUI stuff. I would not be surprised if it was removed from the Picomite manual in the future. One change of the GUI functions could mean several manuals would need to be updated. If it makes you feel any better, the manual for the MM+ only contains the things that are ADDITIONAL to the Micromite manual. This is were the GUI functions began (I believe). Maybe one day they will be removed from that manual and that would mean that THREE manuals would be needed for the MM+ (I hope not). The program does work well. If only I could understand it. Bill Keep safe. Live long and prosper. |
||||
JanVolk Senior Member Joined: 28/01/2023 Location: NetherlandsPosts: 144 |
Turbo46, A clear explanation for the references. Thanks for that. Jan |
||||
JanVolk Senior Member Joined: 28/01/2023 Location: NetherlandsPosts: 144 |
Peter, When calling up the List Functions, CtrlVal( in this list is expected to also get a CYAN color in the EDITOR? Jan |
||||
JanVolk Senior Member Joined: 28/01/2023 Location: NetherlandsPosts: 144 |
Peter, There may be more like MM.Fontwidth and MM.Fontheight? See screen print. Jan |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9119 |
Please stop posting about editor colouring. Many commands in the CMM2 and MMB4W are converted into other commands by the pre-processor. Therefore they are not colour coded. It is what it is and remember it is free |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6795 |
If the "wrong" colours put you off it's easily fixed with OPTION COLOURCODE OFF. ;) More to the point, even if CtrlVal(#ref) is listed as a command, it's always treated as a single-dimensional array - it is actually a value. To colour it any differently probably introduces more confusion, not less. Mind you, that's just me. :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
JanVolk Senior Member Joined: 28/01/2023 Location: NetherlandsPosts: 144 |
Peter & Mick, Thanks for answering my color question on the editor. I already suspected something like this could be going on so I won't ask about it again. The program is still a Beta version so there may still be bugs? The editor is already not fast with MMB4W and may become even slower and I can also choose a single color. The utility is made for quick customization and for real work Notepad++ or any other editor is more suitable for writing a program and if I am adapting the newly discovered Syntax highlighting in Notepad++ for my own programming language such as PicoMite Basic, MMB4W , Bascom AVR and Annex Basic, then I can develop programs with them and immediately use them from the same folder. It was a bit of a puzzle with the syntax marking, but once you have mastered it, it works very well. Jan. |
||||
crez Senior Member Joined: 24/10/2012 Location: AustraliaPosts: 152 |
Hi All I am trying to get MMB4W to search for a picomite connected to the PC. It opens ports from 1 up and sends 'p' then looks for a response. It works until it tries to open a port assigned to 'standard serial over bluetooth link'. Before the 'p' is sent, MMB4W hangs and must be closed manually. If I disable bluetooth it works, and it works if I scan downwards from 40, but I'm not sure that would always be reliable. using mmb4w 5.07.03 b18 for j=1 to 40 print j, on error skip 12 open "com"+str$(j)+":38400" as #1 print ,j;" opened" print #1,"p" pause 100 line input #1,a$ if left$(a$,1)="P" then print "found port ";j com=j exit for end if close #1 print "com";j;" closed" next j print "port scanning done" if com=0 then print "com port not found" |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9119 |
V5.07.03b20 Long time since I've played with this and compiling on a new machine so anything could happen MMBasic.zip Fixes bug in sprite hide safe on layer 0 Changes the MMGetLine function so it echoes CRLF when it sees a linefeed character as well as a carriage return. This fixes the issue with the INPUT command and the same issue with LINE INPUT command. I hope this hasn't broken anything else. |
||||
Martin H. Guru Joined: 04/06/2022 Location: GermanyPosts: 1113 |
thank you, but i just get a (OLC) Black screen, no cursor 'no comment |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9119 |
Works fine for me. What was the last version you ran? Try deleting the options file. |
||||
Page 26 of 30 |
Print this page |