B4J Question List IndexOf with integers

uniplan

Active Member
Licensed User
Longtime User
Dears,

I am having a problem with List.IndexOf method


In my code I have an istruction

Dim pChunk As Int = readChunkAbsIndex.IndexOf(firstChunkIndex)

where firstChunkIndex is an Int variable (function parameter) equal to 1,
and 1 is the unique element in readChunkAbsIndex list.

...but pChunks is assigned to -1

Please, see the three attachements


Hence, please explain me how IndexOf works.

Kind Regards,
Mauro.
 

Attachments

  • indexOf.zip
    82.8 KB · Views: 280
Top