I don't know whether any out there uses Navision?! but we've recently been lumbered with it and I'm trying to pass a field name dynamically to a function.
Instead of
ModelRec.SETCURRENTKEY(ModelRec.Transmission);
I want to do something like ...
ModelRec.SETCURRENTKEY(ModelRec("FieldName"));
where the string FieldName = "Transmission"
Can anyone point me in the right direction please?