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.
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.