store[1] := '001'; store[2] := '003'; store[3] := '008'; store[4] := '013'; FOR counter := 1 TO 4 DO BEGIN "Stockkeeping Unit".SETFILTER("Location Code",store[counter]); "Stockkeeping Unit".CALCFIELDS(Inventory); inv[counter] := "stockkeeping unit".inventory; END;
Answers
Maybe: where the vSOmeItemNo, vSomeVaariant is the codes of the Item No. you are looking for and the variant code.
If no variants are used then you could use the empty string ''.
Arhontis
https://forum.mibuso.com/search
If you insert values at runtime ,use instead.
Many thanks to both of you.
Jamie