Hi,
I am in the process of tidying up a project as it gets bigger and am currrently trying to call a subroutine in a code module with.....
.... (G is a global Gestures variable).
In the code module I am.....
.... which results in the following compilation error....
What would be the correct syntax for this? p() doesn't work either.
Thanks for any help.
I am in the process of tidying up a project as it gets bigger and am currrently trying to call a subroutine in a code module with.....
B4X:
Dim p(4) As Point
p = Touches.GetDirection(G, p)
In the code module I am.....
B4X:
Sub GetDirection(G As Gestures, p() As Point) As Point
'snip
return p
'snip
End sub
B4X:
Compiling generated Java code. Error
B4A line: 164
p = Touches.GetDirection(G, p)
javac 1.6.0_29
src\jofsoftware\osc\reaperosc\navigationcontrol.java:837: inconvertible types
found : jofsoftware.osc.reaperosc.navigationcontrol._point
required: jofsoftware.osc.reaperosc.navigationcontrol._point[]
_p = (navigationcontrol._point[])(mostCurrent._touches._getdirection(mostCurrent.activityBA,mostCurrent._g,_p));Debug.locals.put("p", _p);
^
1 error
What would be the correct syntax for this? p() doesn't work either.
Thanks for any help.