magnex
asked on
doc.fieldname problem
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the quick answer
Thanks for the points Magnex :-)
to Arun: Bro, check my view SELECT formula...
to Arun: Bro, check my view SELECT formula...
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!