Signatures mismatches

roarnold

Active Member
Licensed User
Longtime User
Evening folks,

I have a ListView that is populated from a SQL server, about twenty items. I set up the ListView1_Click(Position As Int, Value As Object) changing value/object to map1 As Map). I call another activity but when I click on an item in my listview I receive Sub signature does not match expected signature.

A bit confused. I have gone through the book on list view and it shows this, btw, and I reviewed the page on IDE Tips.

Any help would be appreciated.

Ron
 

roarnold

Active Member
Licensed User
Longtime User
Hey Erel,

No I was just starting an activity. The issues is:

ListView1_Click(Position as Int, map1 as Map) can not be in globals lest you receive a "hiding global variable" error. So I changes the variables in the _Click to "P" as Int, "M" as Map) which gets me to the second activity but halts with the signature not matching error.

Thanks,
R
:BangHead:
 
Upvote 0

roarnold

Active Member
Licensed User
Longtime User
Erel,

Was extremely tired so I missed adding the code:

Code:

Activity DispLogAll


Sub Process_Info
...........JSON Stuff
I initialize map1 As Map
JSON etc...
Dim Position As Int

id = map1.Get("id")
typeofcall = map1.Get("typeofcall")
loc = map1.Get("location")


gpsdev = ( " " & id & " " & typeofcall & " " & loc)


ListView1.AddTwoLines(i & gpsdev, narrative)
Log(id)
' Log(gpsdev)
' Log(narrative)
Next


Log(Position)
Activity.AddView(ListView1, 0, 120, 100%x, 100%y)



Return
End Sub

Sub ListView1_Click(Position As Int, map1 As Map)
ListIndex = Position
StartActivity(ItemDetail)

End Sub


Activity ItemDetail


Sub Details (Position As Int, map1 As Map)


map1.Get(i)
DispLogAll.id = map1.Get("id")
DispLogAll.typeofcall = map1.Get("typeofcall")
DispLogAll.loc = map1.Get("loc")
DispLogAll.user = map1.Get("user")
DispLogAll.narrative = map1.Get("narrative")
DispLogAll.priority = map1.Get("priority")
DispLogAll.reportnumber = map1.Get("reportnumber")
DispLogAll.disposition = map1.Get("disposition")
End Sub
I am just geting more information in detail for the Item in the initial list in other activity.


I still get the Signature mismatch.

Help,
Thx R
 
Upvote 0
Top