Hi,
I had some problems with a special char ... µ
some time ago, I found that in the same situation
after I comment out this line all works correct !
' sIRAblType = sIRAblType.Trim.ToUpperCase ' µ 0> M
very strange this ...
I had some problems with a special char ... µ
B4X:
sIRAblType = ... could get "M" or "µ" ... or others ...
Log("IRDA-Version JA - Typ:'" & sIRAblType & "' (1)") ' shows 'M' or 'µ' (1)
sIRAblType = sIRAblType.Trim.ToUpperCase ' µ 0> M
Log("IRDA-Version JA - Typ:'" & sIRAblType & "' (2)") ' shows 'M' ! (2)
Select sIRAblType
Case "M", "µ"
... here I only see the original 'M' values
Case Else
... here I see the original 'µ', but now 'M'
Log("..." & sIRAblType & "' " & oIRDA.Text) ' shows 'M' from µ records.
End Select
B4X:
if sIRAblType = "M" or sIRAblType="µ" then
' shows TRUE when it was a M record, but
else
' shows FALSE after <Trim.ToUpperCase> has changed 'µ' to 'M'
endif
' sIRAblType = sIRAblType.Trim.ToUpperCase ' µ 0> M
very strange this ...