Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Code for assignment for local and enterprise resource to a task?

$
0
0

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 writethecode so thatit works forbothtypes ofresources?

Thank you!

   Michael


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>