![]() |
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: 2932 |
Good find jman - lets see what Geoff says (he's probably fixed it already knowing how fast he works!) WW |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3282 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |