OBJECT Codeunit 50000 Get RecRef from Variant { OBJECT-PROPERTIES { Date=13.02.15; Time=14:57:28; Modified=Yes; Version List=; } PROPERTIES { OnRun=VAR Item@1109200000 : Record 27; BEGIN CLEAR(Item); Item.FINDFIRST; RunPageFromVariant(Item); END; } CODE { PROCEDURE RunPageFromVariant@1109200000(VAR Rec@1109200000 : Variant); VAR RecRef@1109200001 : RecordRef; BEGIN RecRef.GETTABLE(Rec); END; BEGIN END. } }
Comments
In nav2013 it could compile but a record was actually passed by value.
/Juha