'Lag' parameter in LinkPredecessors

B

Ben

What is the right format for the Lag parameter in the LinkPredecessors Task
method? It is a Variant, while it would seem to make sense to have it as a
Long; does it have some special format? Any code snippet using it would be
much appreciated...
Thanks!
 
R

Rod Gill

Hi,

Just make it a string, such as "2d" or "-2d"

--

Rod Gill
Microsoft MVP for Project - http://www.project-systems.co.nz

Author of the only book on Project VBA, see: http://www.projectvbabook.com




Ben said:
What is the right format for the Lag parameter in the LinkPredecessors
Task
method? It is a Variant, while it would seem to make sense to have it as a
Long; does it have some special format? Any code snippet using it would be
much appreciated...
Thanks!

__________ Information from ESET Smart Security, version of virus
signature database 5076 (20100430) __________

The message was checked by ESET Smart Security.

http://www.eset.com

__________ Information from ESET Smart Security, version of virus signature database 5076 (20100430) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 
B

Ben

Thanks, Rod, that worked. I wanted to use a variable, so I defined the
variable as string and added a d at the end, and it worked no problem.
 
R

Rod Gill

Project will convert each day to minutes using the hours per day conversion
rate under options.

Happy scheduling!

--

Rod Gill
Microsoft MVP for Project - http://www.project-systems.co.nz

Author of the only book on Project VBA, see: http://www.projectvbabook.com




Ben said:
Thanks, Rod, that worked. I wanted to use a variable, so I defined the
variable as string and added a d at the end, and it worked no problem.



__________ Information from ESET Smart Security, version of virus
signature database 5078 (20100501) __________

The message was checked by ESET Smart Security.

http://www.eset.com

__________ Information from ESET Smart Security, version of virus signature database 5078 (20100501) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top