want Item not array of Item

NotesDocument.Items gives me an array of items.
Is there a way to get a a single Item?  I'm looking at
NotesDocument and don't see it.

I want a get a RoutTimes Item in a NotesDocument and
use NotesItem.DateTimeValue

thanks

(using ole interface)
LVL 1
hank1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

HemanthaKumarCommented:
Use GetFirstItem(FieldName)...
For more details look into NotesItem object

~Hemanth
0
hank1Author Commented:
So you have to enum this?  No using the name to index?
0
HemanthaKumarCommented:
notesitem.values will give the enumeration

The index of the item value will be from 0 (for single value) to number of elements



0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

p_parthaCommented:
You can use notesdocument.fieldname(0)

Partha
0
hank1Author Commented:
LOTUS CONNECTORS
"Returns the field name for a specified column, given its ID (column number)"

How would using fieldname(0) get me a NotesItem?

I've got this feeling there's no hash that will get me this.

Thanks
0
HemanthaKumarCommented:
What is lotus connectors doing here ?

What partha mentioned is another way to access the item value using extended class syntax.

Are you working in notes client or java or com ?
0
hank1Author Commented:
ole interface, 6.5
0
HemanthaKumarCommented:
Then you cannot use partha's way of accessing the item data

Access the data by enumerating the item data using GetItemValue .. NotesDocument method of getting array of the item values directly from document object
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hank1Author Commented:
So the answer is enumerate - so it can't be done.
Thanks
0
HemanthaKumarCommented:
Never said that.. It can be done..

Post your code snippet so that I can get a better idea of what you are doing
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.