Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 20:46 29 Apr 2024 Privacy Policy
Jump to

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 Zealand
Posts: 711
Posted: 09:35pm 27 Nov 2014
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 2794
Posted: 10:04pm 27 Nov 2014
Copy link to clipboard 
Print this post

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: Australia
Posts: 3165
Posted: 10:44pm 27 Nov 2014
Copy link to clipboard 
Print this post

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


To reply to this topic, you need to log in.

© JAQ Software 2024