Android Question return of http2 jobdone

jayel

Active Member
Licensed User
Longtime User
Hello,

Here I am again with a strange problem.
B4X:
Dim idnummer As Int
    Dim machnaam As String
    Dim machnr As Int
    Dim omschrijving As String
   
    Dim mywerk As Map
    mywerk = result.Get(Position)
    Log("idnummer : " & mywerk.Get("machinesaveid"))
    Log("machnaam : " & mywerk.Get("machnaam"))
    Log("omschrijving : " & mywerk.Get("omschrijving"))
   
    idnummer = result.Get("machinesaveid")
    machnaam = result.Get("machnaam")
    machnr = result.Get("machnr")
    omschrijving = result.get("omschrijving")


this give following output in my log window :
idnummer : 10
machnaam : U2 Mirage
omschrijving : Onderhoud van simulator
An error occurred:
(Line: 129) idnummer = result.Get("machinesaveid")
java.lang.NumberFormatException: For input string: "machinesaveid"
But then it give a "java.lang.NumberFormatException ??

Please some help.

Greets,

John
 
Top