Automation Variables

langlang Member Posts: 27
Hi together,

i have a problem with an automation of MS Project which is used for a interface between NAV and MSP. In case of that problem I wanted to build a simple codeunit to try if it basically works.

I have a new codeunit, enter a new Global variable with any name, data type automation and i chose the MS Project 12 Object Library. Then i try to compile that cu but it is not compileable, even when i try to use MS Excel Object Library.

What's wrong?
I hope anybody can help...

Alex

Answers

  • kinekine Member Posts: 12,562
    It is common problem with long function names. Search the forum for solutions. One of them is to use local variable (not everytime usable), or one trick using text file object export/import.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    You can also try to shorten your variable name.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • garakgarak Member Posts: 3,263
    or define it at local ;-)
    Search the forum. For this problems exists some posts.
    Do you make it right, it works too!
  • langlang Member Posts: 27
    @Luc:
    to shorten my variable doesnt help, anyways its already only 3 letters short "MSP" :)

    @kine:
    the solution with local variable works fine.

    Thank you all...
Sign In or Register to comment.