Solved

doc.fieldname problem

Posted on 2002-07-25
4
178 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the fileā€¦
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

759 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

18 Experts available now in Live!

Get 1:1 Help Now