|
Forum Index : Microcontroller and PC projects : MMBasic case sensitivity
| Author | Message | ||||
| Fredd Newbie Joined: 26/09/2023 Location: South AfricaPosts: 6 |
I am using MM Basic user manual version Ver 5.07.04 which states that the interpreter is not CASE sensitive but I found otherwise recently. I usually use capitals for all program names subroutines values etc and lower case for the rest. I downloaded a set of routines lately that had a mixture of cases that refused to run. I found after battling the error messages that a variable must be identical letter for letter to the definition. For example if your variable name is ValuE then none of the following are recognised as equal to ValuE. e.g valuE, Value, VALUE or value. Has this always been the CaSe? |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10982 |
The only thing that is case sensitive is filenames on the A: drive which is a function of the LittleFS file system ![]() Edited 2026-02-23 19:46 by matherp |
||||
| JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 4254 |
Just tried mmb4l and it behaves as expected (case insensitive variables). John |
||||
| Fredd Newbie Joined: 26/09/2023 Location: South AfricaPosts: 6 |
Thanks for the reply matherp and JohnS. That is exactly what I expected to happen. I was battling with this all yesterday when it refused accept anything but the defined variable spelling. I tried your example and it worked then I thought perhaps the OPTION SPECIFIC at the head of my program made it case sensitive. I disabled that and it worked so I replaced OPTION SPECIFIC and it continued to work!!! I give up as long as it works. Many thanks Vaughn |
||||
| Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 8582 |
OPTION SPECIFIC? I don't remember that, and it's not in my V5.07.03 manual for the PicoMite. Does it do anything? Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 3028 |
Not in the latest manual either. > OPTION SPECIFIC The non-standard PicoCalc version perhaps? Error : Invalid Option > |
||||
| JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 4254 |
mmb4l > OPTION SPECIFIC Error: Unknown option John |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 3028 |
Maybe @Fredd means OPTION EXPLICIT ? |
||||
| JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 4254 |
Maybe. It's a good thought. It doesn't do what was posted... but still, let's hope for more info. John |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |