Functions everything I create is LOCAL

martinher562martinher562 Member Posts: 50
Hello NAV Experts,

I am breaking my head because every function I create is a local function.

For example: https://saurav-nav.blogspot.nl/2015/07/nav-2013-r2-multiple-sheets-in-excel.html

This person created two functions: OnlyCreateBook and OnlyOpenExcel()
Both of his triggers only show the function and do not say LOCAL.

When I create those functions in my report or in the excel buffer table in the CAL code trigger shows: LOCAL OnlyopenExcel()

Why does mine always show local ?
How do I create a function that does not say local?

Thank you !

Best Answer

Answers

  • KishormKishorm Member Posts: 921
    The reason this change was made was to encourage encapsulation - I.e. You only expose those functions which are meant to be called from external objects
  • martinher562martinher562 Member Posts: 50
    Thank you ! @archer89 and @Kishorm
Sign In or Register to comment.