Good morning everyone
Why doesn't this get the next item in the list? The parameter
iPosition is passed from a loop and is assuredly incremented each time
its called from here:
So no matter what value iPosition is it keeps giving me the last item from the list...
Why doesn't this get the next item in the list? The parameter
iPosition is passed from a loop and is assuredly incremented each time
B4X:
Sub GetSpecificOrderNoPerBinPosition(iPosition As Int) As typ_cOrderAssignment
Dim tmpOrdObj As typ_OrderObject
Dim tmpOrgAssign As typ_cOrderAssignment
tmpOrgAssign.Initialize
tmpOrdObj.Initialize
tmpOrdObj = postMain.lstOrders.get(iPosition)
tmpOrgAssign.ordId = tmpOrdObj.orderID
tmpOrgAssign.pos = iPosition
Return tmpOrgAssign
End Sub
its called from here:
B4X:
For x = 0 To iBinCount -1 ' lstOrderAssignments.Size -1
Dim currOrdData As typ_cOrderAssignment
Try
currOrdData = daObject.GetSpecificOrderNoPerBinPosition(x)
Catch
End Try
So no matter what value iPosition is it keeps giving me the last item from the list...