none
dynamics nav RRS feed

  • Question

  • code like as:

    CalculateNewDate1(DateFormulaIn : DateFormula;ReferenceDateIn : Date) ResultDate : Date
            ResultDate:=CALCDATE(DateFormulaIn,ReferenceDateIn);

    in code unit with proper defining of variables.

    and in table object like as :

    CalculateNewDate(VAR Rmg : Codeunit RadioShowManagement)
    DateResult:=Rmg.CalculateNewDate1("Date Formula to Test","Reference Date for Calculation");
    
    but while compiling it shows error define CalculateNewDate1 as to be global. why?? 
    


    Wednesday, July 13, 2016 10:11 AM

All replies

  • Hi,

    Is this Excel coding or another language other than VB.NET ?


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    Wednesday, July 13, 2016 10:16 AM
  • That is code for Microsoft Dynamics NAV(ision), not VB .NET

    That forum is HERE

    Wednesday, July 13, 2016 9:02 PM