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.
joker Regular Member Joined: 06/02/2024 Location: GermanyPosts: 41
Posted: 06:03pm 01 May 2026
Copy link to clipboard
Print this post
Hello, I recently discovered a bug in MMBasic 5.07.01 on my CMM2.
I defined a funktion like this:
FUNCTION convertToHex$(a%) convertToHex$=<do something> END FUNCTION
If I run this program I get this error message: "Variable Name".
The reaon for this is that Hex$ is a reserved name in MMBasic and obviously it doesn't matter that Hex$ is part of a longer name. Changing the name or choosing a different return type than String make the message disapear.
The name is perfectly acceptable for MMB4L.
Maybe you know this problem already, but I haven't found any hint in this forum. Therefore, I would be delighted, if we could get the MMBasic 6.xx on the CMM2 soon.