Item.Body

  • Thread starter Thread starter John
  • Start date Start date
J

John

I'm having trouble using script to add some information to the item body.
The following code shows the text in the first Messagebox but nothing in the
second. If I use NewItem.Body = "Details in Message body" then the second
msgbox shows that text.

msgbox(arrFull(J, 58))
NewItem.Body = arrFull(J, 58)
msgbox(NewItem.Body)

What could be going wrong?

Thanks,

John
 
Hi John,

the shown code is ok. What is the code you´re not showing? I suppose
that you´re deleting arrFull(j,58) somewhere after the first line and -
more meaningfull than the blank second MsgBox - that NewItem.Body also
is blank.
 
These three line follow each other in the code. There is nothing between
them. I have only put the msgbox lines there to see what might be happening.

John
 
Mysterious...
- What kind of data contains the array?
- What is the first MsgBox displaying?
- Maybe an event changes the value of "j" between the second and third
line?
- What is the error object saying? (Please, if there is an On Error
Resume Next statement, comment it out.)
 
Back
Top