hey b4a community
'Type area(Areaname As String,Areanumber As Int)
dim l1 as list
Dim a As area
a.Initialize
l1.Initialize
l1.Add(a=add_area("Dnkl",90))
l1.Add(add_area("NMJ",89))
l1.Add(add_area("ASSS",900))
Log( l1.IndexOf(a))
I had created a function above and when i find indexof the area(custom type) i got index of -1
but when i find index using areaname only i got the proper index.So what the solution of finding proper index through the reference of object.
'Type area(Areaname As String,Areanumber As Int)
dim l1 as list
Dim a As area
a.Initialize
l1.Initialize
l1.Add(a=add_area("Dnkl",90))
l1.Add(add_area("NMJ",89))
l1.Add(add_area("ASSS",900))
Log( l1.IndexOf(a))
I had created a function above and when i find indexof the area(custom type) i got index of -1
but when i find index using areaname only i got the proper index.So what the solution of finding proper index through the reference of object.