Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:32 28 Nov 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 : CMM v4.4(a) bug

Author Message
Juri74

Senior Member

Joined: 06/02/2012
Location: Italy
Posts: 162
Posted: 08:13am 23 Oct 2013
Copy link to clipboard 
Print this post

hello i think i've just found a bug. it's in v4.4 but because v4.4a only fix a PIN 7 bug probably this bug is in 4.4a too

try this little program:
Hello()
Print "Where is the bug?"
End

Sub Hello()
Print "Hello there!"
Return


could someone confirm this please? :)Edited by Juri74 2013-10-24
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1425
Posted: 10:42am 23 Oct 2013
Copy link to clipboard 
Print this post


So what happens? Are you saying it is OK that return works?


Hello()
Print "Where is the bug?"
End

Sub Hello()
Print "Hello there!"
END SUB
Micromites and Maximites! - Beginning Maximite
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 03:56pm 23 Oct 2013
Copy link to clipboard 
Print this post

It does work but only because Return does the same thing as End Sub - however this may change in the future.

The correct syntax is:

Hello
Print "Where is the bug?"
End

Sub Hello
Print "Hello there!"
End Sub

Geoff
Geoff Graham - http://geoffg.net
 
Juri74

Senior Member

Joined: 06/02/2012
Location: Italy
Posts: 162
Posted: 10:18am 30 Oct 2013
Copy link to clipboard 
Print this post

ok, thank you Geoff
 
Print this page


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

© JAQ Software 2024