[BANano] Find the bug

Mashiane

Expert
Licensed User
Longtime User
Hi Fam

One of the things I like the least is debugging... Imagine that after an hour you find out what is wrong with this code

B4X:
private Sub Typing(e As BANanoEvent)
    e.PreventDefault
    'Try
        Select Case e.Key
        Case "Enter"
            Dim e As BANanoEvent
            BANano.CallSub(mback, $"${mName}_Send"$, Array(e))
        Case Else    
            Dim svalue As String = SenderMessage.GetValue
            Dim bStatus As Boolean = False
            If svalue.Length > 0 Then bStatus = True
            UserIsTyping = bStatus
            SDUIShared.SetVisible($"${mName}_typing"$, bStatus)
            BANano.CallSub(mback, $"${mName}_IsTyping"$, Array(bStatus))
        End Select    
    'Catch            'ignore
        'not sure why this raises an error
        'Log(LastException)
    'End Try        
End Sub

Can you see what the problem is here?

🤣🤣🤣🤣

I guess I was just mentally xhausted...
 
Top