P.S. I'm using Lotus Notes 4.63a
dim db as NotesDatabase
dim db2 as New NotesDatabase("ServerName","Database.nsf")
dim view as NotesView
dim view2 as NotesView
dim session as New NotesSession
***Look Here ****
dim doc as NotesDocument
dim doc2 as NotesDocument
********************
dim strWhere as string
dim strAddress as string
set db = session.currentdatabase
set view = db.getview("YourFirstView")
set doc = view.GetFirstDocument
view = db2.GetView("YourSecondView")
set doc2 = view.GetFirstDocument
strWhere = doc.where(0)
strAddress = doc2.address(0)
If strWhere = strAddress then
.... enter your script here.....
Else
MsgBox "The person who justed posted this script is an idiot"
End if
Hope this helps
Lugin
> I tried to debugg using "messagebox(firstDB.where)" to see if the
> script
> managed to print the string on screen, but all I got was a "Type
> mismatch error" (I am *sure* that the fields are normal
> textfields...).
Small tip - the most (any ?) document field you access in scriptare a
arrays. No mather how many items it has or if multiple values are
alowed. For getting all values use a variant variable and for the first
one only the syntax:"messagebox(firstDB.where(0))"
To put one value in a document field use doc.fieldname = "Value", for
value of an other type or multiple values use a variable or array.
Svatos
Do you have any ideas for a good and thorough LotusScript book? Or should I
go for Java instead.
David