Sub ScrollView1_ScrollChanged (OffsetX As Int, OffsetY As Int)
For Each p As Panel In panels
If p.Left = OffsetX Then
noPageControl.SetField("currentPage", p.Tag)
Log(p.Tag)
End If
Next
End Sub
I wanted to return the page, Log(p.Tag) here does it. Perfect!