I am using a highlrow where the user can click on multiple xBrowse rows :
and I click Transfer .. I get the Bookmark array :
- Code: Select all Expand view
//----------------------
Static Func _TranAll( oRsInvt,oWnd,oLbxMain,oRsInvDetail,;
oWndChildD,oRsInv,lTaxable,oTaxable,oFontB,oFontBig,nRepairNumber,;
oLabor,oParts,oMisc,oTax,oTotal,nAssignedTo,cLoc,cTaxSet,;
oOther,oSubtotal,oLbx,oBtn1,oBtn2,oBtn3,lIsTrucker )
Local aCols,Saying,i
aCols := oLbx:aSelected
xbrowse(aCols)
For i = 1 to Len(aCols)
oLbx:BookMark(aCols[i])
_TransFer( oRsInvt,oWnd,oLbxMain,oRsInvDetail,;
oWndChildD,oRsInv,@lTaxable,oTaxable,oFontB,oFontBig,nRepairNumber,;
oLabor,oParts,oMisc,oTax,oTotal,nAssignedTo,cLoc,cTaxSet,;
oOther,oSubtotal,oLbx,oBtn1,oBtn2,oBtn3,lIsTrucker )
Next
Return(nil)
You will notice I am looping through the array, but unfortunitly the the bookmark does not move to the correct data row and I get the same Data twice:
First Bookmark:
Second Bookmark:
Final transfer to invoice:
How can I force looping through the BookMark array to move the record pointer to the correct data line ?
Rick Lipkin