Android Question Beta 3 error report - "toString not supported"

beacon

Member
Licensed User
Longtime User
I am processing a global co-ordinate string of 8 characters.

The original working line is:

If asc(WorkStr.SubString2(h,h+1)) = 65533 Then 'Returns 65533 for a Diamond (representing the ASCII "°" degree character)
works in Debug(Legacy) but fails in Debug(Rapid) mode.


So

If asc(WorkStr.SubString2(h,h+1)) = 65533 Then 'Returns 65533 for "°"

' where Workstr = " 43X 22N" and is 8 characters long.
' where the X is not X but a Diamond shape representing the ASCII degree sign "°"
.


I weeded this out to the following:


TestStr = WorkStr.SubString2(h,h+1)
TestInt = Asc(TestStr) 'Returns 65533 for "°".


'An error occurred:
'(Line: 7358) TestInt = Asc(TestStr)
'java.lang.RuntimeException: toString not supported



Best wishes.

David.
 

KlaKoe

Member
Licensed User
Longtime User
Hallo Erel

The same Error-Message happend in my program in this situation:

Here is the Code:

Dim vUMLliste As List 'enthält die gesamte CSV-Datei in einer Liste
vUMLliste.Initialize
Dim su As StringUtils

in Code-module cTest:
Dim CSV_Trenner = "," As String

vUMLliste = su.LoadCSV(Datendirectory,Datei,cText.CSV_Trenner)


size 2560 1342
** Activity (main) Create, isFirst = true **
Datendirectory: /storage/emulated/0/documents/itcs_test/wilmobil

Start:07:56:34
An error occurred:

(Line: 388) vUMLliste = su.LoadCSV(Datendirectory,Datei,cText.CSV_Trenner)
java.lang.RuntimeException: toString not supported

Best wishes
Klaus
 
Upvote 0

beacon

Member
Licensed User
Longtime User
Yes, I echo Klaus. That works, and also has fixed a couple of other errors I found.

Very well done Erel.

Thank you.
 
Upvote 0
Top