none
Code for assignment for local and enterprise resource to a task? RRS feed

  • Question

  • Greetings,

    I have programming in VB.net a code, that assiged a local resource to a task:

                            Ass=ActiveProject.Resources.Item(RessNummer).Assignments.Add(t_temp.ID)

    If I use this code with enterprise resource, this error occured:

    "NullReferenceException was unhandled by user code"

    How can I write the code so that it works for both types of resources?

    Thank you!

       Michael

    Friday, July 4, 2014 6:39 PM

All replies