SETSELECTIONFILTER on from 143 not working!

FCPFCP Member Posts: 36
On form 143 this simple code that I use all the time is not working ](*,)


GTotalAmount:=0;
GQty:=0;

CurrForm.SETSELECTIONFILTER(LRec1);
IF LRec1.FINDSET THEN
REPEAT
//LRec1.CALCFIELDS("Amount Including VAT");
//GTotalAmount:=GTotalAmount+"Amount Including VAT";
GQty:=GQty+1;
UNTIL NEXT=0;

Comments

  • FCPFCP Member Posts: 36
    It looks that counts from my position until the end of records.

    Even if only 2 are selected
  • kinekine Member Posts: 12,562
    yes, because you are doing NEXT on rec instead on LRec1... ;-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.