Why do I get error in line 4 : "current delaration does not match previous one"
Each element in pkt is a pp, isn't it? If I omit the declaration of pp in line 3 like:
I get error in line 5: unknown type: object
Can anybody help me to understand?
B4X:
Private Sub FlipHorizontal(img As B4XView, pkt() As Mypkt )
'Spiegelt um Senkrechte, mitte img
Dim ww as double=img.Width, pp As Mypkt
For Each pp In pkt
pp.x=ww-pp.x
Next
End Sub
B4X:
Private Sub FlipHorizontal(img As B4XView, pkt() As Mypkt )
'Spiegelt um Senkrechte, mitte img
'rückgabe in Pkt
Dim ww as double=img.Width
For Each pp In pkt
pp.x=ww-pp.x
Next
End Sub
Can anybody help me to understand?