syntax LS NAV 5 into LS NAV 2018

anyone know this syntax in NAV 5?
CurrForm.SubForm.FORM.SetCurrentLine(Currline)
i can't use this into NAV 2018

i'm on progress merge Form(coding) EPOS Main (99008951 LS NAV 5) into codeunit POS Transaction (99001570 LS NAV 2018)
i still confuse for that syntax

Best Answer

Answers

  • SanderDk
    SanderDk Member Posts: 507
    This: CurrForm.SubForm.FORM.SetCurrentLine(Currline)
    is calling on a function on a form, the form object does not exist in NAV 2018

    In NAV 2018
    Would be Currpage instead of CurrForm.
    You are trying to call a function on a subform called SetCurrenctLine, Does that function exist?
    For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.