OBJECT Codeunit 50222 Test { OBJECT-PROPERTIES { Date=05/14/11; Time=[ 4:22:54 PM]; Modified=Yes; Version List=; } PROPERTIES { OnRun=BEGIN PA1.SETRANGE(PA1."No.",'PO0030314','PO0030380'); PA1.FINDSET; REPEAT PA2.RESET; PA2.SETRANGE("No.",PA1."No."); PA2.FINDLAST; PA1 := PA2; MESSAGE(FORMAT(PA2)); UNTIL PA1.NEXT=0; END; } CODE { VAR PA1@1000000000 : Record 5109; PA2@1000000001 : Record 5109; BEGIN END. } }
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Btw: interesting howto kriki, thanks
There's a NAV design pattern describing it: SELECT DISTINCT with Queries.
Microsoft Dynamics NAV
Your object modified: