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 : Sub Names
Author | Message | ||||
jman Guru Joined: 12/06/2011 Location: New ZealandPosts: 711 |
Hi Using the Micromite B25 It seems now Sub names are sort of case sensitive Test: Print "Hello" Delay GoTo Test Sub DELAY Pause 1000 End Sub The above produces the output below run Hello [4] Delay Error: Inconsistent type suffix Test: Print "Hello" Delay GoTo Test Sub Delay Pause 1000 End Sub The code above produces Hello Hello Hello Hello Hello Hello Hello etc.... If you change all the letters to uppercase except the last one it still works as expected. Test: Print "Hello" DELAy GoTo Test Sub Delay Pause 1000 End Sub The code above produces Hello Hello Hello Hello Hello Hello Hello etc.... Bug Maybe ? Regards Jman |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
Good find jman - lets see what Geoff says (he's probably fixed it already knowing how fast he works!) WW For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3165 |
Yes, it is a bug and thanks for finding it. I will fix it in the next beta but the workaround for the moment is to keep the case of a subroutine or function the same throughout your program. Most grateful, Geoff Geoff Graham - http://geoffg.net |
||||
Print this page |