Solved

doc.fieldname problem

Posted on 2002-07-25
4
179 Views
Last Modified: 2013-12-18
hello experts,
I've a litttle question
I'm writing a lotusscript code, but I've a little problem
Here's an example
' this is oke
fieldname = doc.month(0) 'example may
....
'here goes it wrongs
doc.fieldname = .................

if I write doc.fieldname he's looking in the document to a field called fieldname, but he need to look to a field doc.may because fieldname has the value may
How can I do that ?
doc. + fieldname doesn't work
0
Comment
Question by:magnex
  • 2
4 Comments
 
LVL 10

Accepted Solution

by:
zvonko earned 40 total points
ID: 7176764
Try this:
Dim doc As NotesDocument
Dim item As NotesItem
Dim fieldname as String
...
fieldname = doc.month(0)
Set item = doc.ReplaceItemValue(fieldname, "...")

~zvonko

0
 
LVL 9

Expert Comment

by:Arunkumar
ID: 7176784
This doc.Fieldname = Value works something like this....

if there is a fieldname already in the document then it replaces the value, if there is no field in the document then it creates a new field and puts your value in it.

Hope it helps!
0
 

Author Comment

by:magnex
ID: 7176809
Thanks for the quick answer
0
 
LVL 10

Expert Comment

by:zvonko
ID: 7176854
Thanks for the points Magnex :-)

to Arun: Bro, check my view SELECT formula...

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now