Options

Function UpdateSalesCost of TB 39 is not exposed outside?

andy76andy76 Member Posts: 616
Hello,

I am trying to use this function that is a global function but I can't. It is not listed in C/AL Symbol Menu (F5) and is not insertable manually because the compiler says that it is a variable not defined. Why this?

Thank you

Comments

  • Options
    andy76andy76 Member Posts: 616
    I have understod that it has the property Local = yes.
    Can I modify that or is it dangerous?

    Thank you
  • Options
    Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    edited 2009-06-12
    Hi,

    Strictly from technical point of view modifying function property Local from Yes to No is absolutely safe (but not vice versa Local from No to Yes)

    But - if someone developing function decided that it is local to the object perhaps he/she has a good reason to do so. It might not be save to use this function 'standalone', due to various reasons (for example another function must be called prior to set some object global variables). I didn't check UpdateSalesCost in T39 - this is just a general warning..

    Regards,
    Slawek
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • Options
    andy76andy76 Member Posts: 616
    Yes, it's clear, thank you
Sign In or Register to comment.