Bug? TTS error in Debug

Hypnos

Active Member
Licensed User
Longtime User
I have the following code in my b4i program :

B4X:
Sub CanSpeak
        TTS1.Initialize("SpeechEvent")
        TTS1.SetLanguage("zh-HK")
        TTS1.SpeechRate = (0.2)
        TTS1.Speak(TTS_CWord,True)
End Sub


Sub SpeechEvent_Complete ("can_complete")

End Sub


Got the following error if I run it in debug and if I have to take out the Sub SpeechEvent_Complete, any idea please? Thanks!

B4X:
B4i version: 2.31
Parsing code.    (0.02s)
Compiling code.    (0.24s)
Compiling layouts code.    (0.01s)
Compiling debugger engine code.    Error
B4i line: 152
End Sub
javac 1.7.0_40
shell\src\com\hypoapps\timestable\b4i_main_subs_0.java:1386: error: ')' expected
Debug.locals.put(""can_complete"", _can_complete);
                   ^
1 error
 
Top