Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
other
informationbridge
office.intranets
office.misc
office.setup
office.xml
officeupdate
onenote
photodraw.discussion
powerpoint
producer
proj.standard&server
project
project.developer
project.pro_and_serve
project.server
project.vba
project2000
publisher
publisher.prepress
publisher.programming
publisher.webdesign
visio
visio.createshapes
visio.database.modeling
visio.dev.diagrams
visio.dev.shapesheet
visio.dev.vba
visio.dev.vc
visio.developer
visio.general
visio.installation
visio.printing
visio.software.modeling
visio.troubleshoot
  
 
date: Tue, 8 Jul 2008 02:20:01 -0700,    group: microsoft.public.project.developer        back       


How do I refer to task IDs when a Unique Id is known?   
Hi,

I am using Visual C#- through VS 2008's inbuilt libraries to access MS 
Project. The problem I am facing is that when I am inserting new tasks into 
project, the task IDs change and hence the collection that I have, to perform 
actions upon, gets altered. Unique IDs remain unique but then, I do not know 
of a way to access the Unique IDs through VS 2008. For referring to the 
Unique ID of a particular task, I need to know the ID of the task. But then, 
the ID gets changed as soon as I insert or delete a few tasks. Can someone 
please help me out with this??

Aditya
date: Tue, 8 Jul 2008 02:20:01 -0700   author:   Aditya

Re: How do I refer to task IDs when a Unique Id is known?   
activeproject.tasks.uniqueid(theID)

-- 
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check:
http://users.online.be/prom-ade/Calendar.pdf
"Aditya"  wrote in message 
news:BA9123AA-7BC2-4139-B3AF-2290CB1431B8@microsoft.com...
> Hi,
>
> I am using Visual C#- through VS 2008's inbuilt libraries to access MS
> Project. The problem I am facing is that when I am inserting new tasks 
> into
> project, the task IDs change and hence the collection that I have, to 
> perform
> actions upon, gets altered. Unique IDs remain unique but then, I do not 
> know
> of a way to access the Unique IDs through VS 2008. For referring to the
> Unique ID of a particular task, I need to know the ID of the task. But 
> then,
> the ID gets changed as soon as I insert or delete a few tasks. Can someone
> please help me out with this??
>
> Aditya
>
date: Tue, 8 Jul 2008 18:33:25 +0200   author:   Jan De Messemaeker

Re: How do I refer to task IDs when a Unique Id is known?   
Doesn't .UniqueID need a uniqeID as a parameter? How about this (sorry but 
VBA is how I roll):

Set t = activeproject.Tasks.Add()
uID = t.UniqueID

You can store the uIDs or the tasks themselves in an array or collection.

Bill B

"Jan De Messemaeker"  wrote in message 
news:eB%23eYhR4IHA.4988@TK2MSFTNGP04.phx.gbl...
> activeproject.tasks.uniqueid(theID)
>
> -- 
> Jan De Messemaeker
> Microsoft Project Most Valuable Professional
> +32 495 300 620
> For availability check:
> http://users.online.be/prom-ade/Calendar.pdf
> "Aditya"  wrote in message 
> news:BA9123AA-7BC2-4139-B3AF-2290CB1431B8@microsoft.com...
>> Hi,
>>
>> I am using Visual C#- through VS 2008's inbuilt libraries to access MS
>> Project. The problem I am facing is that when I am inserting new tasks 
>> into
>> project, the task IDs change and hence the collection that I have, to 
>> perform
>> actions upon, gets altered. Unique IDs remain unique but then, I do not 
>> know
>> of a way to access the Unique IDs through VS 2008. For referring to the
>> Unique ID of a particular task, I need to know the ID of the task. But 
>> then,
>> the ID gets changed as soon as I insert or delete a few tasks. Can 
>> someone
>> please help me out with this??
>>
>> Aditya
>>
>
>
date: Tue, 8 Jul 2008 14:47:29 -0400   author:   Bill B

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us