CustomFieldValueListGetItem Method error

E

Ed

Hi,
We've made extensive use of the Enterprise Global template, and as such,
want to create a custom task interface form for our Users. I am trying to
use the VB method shown in the subject line to populate a drop-down list of
valid enterprise values. The following code receives an unexpected error
with the Methos (1004).

The Enterprise Global Template is open under Administrator authority
objApp is set using GetObject(, "MSProject.Application).
lstVal is dimmed as String

lstVal = objApp.CustomFieldValueListGetItem(pjCustomResourceEnterpriseText1,
pjValueListValue, 1)

Any ideas what may be wrong? Is there a fix for this?

Thanks,
Ed
 
J

Jan De Messemaeker

Hi,

This is the error I get when there is no value list yet.
You cn only read values already in the list with this method.
HTH
 
E

Ed

This works now. Thank you Jan.

Jan De Messemaeker said:
Hi,

This is the error I get when there is no value list yet.
You cn only read values already in the list with this method.
HTH
 

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