Compiling code. Error
Error parsing program.
Error description: Given the dictionary did not have the key.
Occurred on line: 27
Sub ListView1_ItemClick (Position As Int, Value As Object)
The best way to get a concrete and efficient help is to post your project as a zip file (IDE menu 'File/Expost As Zip') . So we can see what you have done and how. Otherwise we are supposed to guess what you could have done and guess what could have done wrong.
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim ListView1 As ListView
Dim HelpList As List
Dim test As String
Dim i As İnt
Dim label1 As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
activity.LoadLayout("ekr")
ListView1.Initialize("ListView1")
For i = 1 To 300
ListView1.AddSingleLine("Item #" & i)
Next
Activity.AddView(ListView1, 0, 0, 100%x, 100%y)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button6_Click
ExitApplication
End Sub
Sub ListView1_ItemClick (Position As Int, Value As Object)
End Sub
compile eror
Compiling code. Error
Error parsing program.
Error description: Given the dictionary did not have the key.
Occurred on line: 27
Sub ListView1_ItemClick (Position As Int, Value As Object)
You need to remove following lines: ListView1.Initialize("ListView1") Activity.AddView(ListView1, 0, 0, 100%x, 100%y) Because you already defined the ListView in the layout file !
I told you in the previous post that you needed Activity.AddView(ListView1, 0, 0, 100%x, 100%y) but I didn't know that you had defiend it in the layout file.
That's the reason why we ask for the code of the project.
Try the attached zip file it works OK, with the Emulator !!!
The only difference with your code, I commented out the two lines mentioned in my previous post.
I'm afraid that you are mixing up several codes, because in your first post you say that the error is in
line 27
Sub ListView1_ItemClick (Position As Int, Value As Object)
In the code you posted, line 27 is not the same.
Compiling code. Error
Error parsing program.
Error description: Given the dictionary did not have the key.
Occurred on line: 57
Sub ListView1_ItemClick (Position As Int, Value As Object)
I just noticed that you have checked a lot of libraries (in the Tab at the lower right corner in the IDE).
Uncheck all libraries to see if the problem still remains.
Then check only the needed libraries and check that you have the latest versions for those.