Hi Alexei,
I have tried the VBScript alternative and it works fine, but I need to do it in JScript.
It seems that my
colLoggedEvents object isn't empty after all. Calling
colLoggedEvents.Count returns a few thousand records.
The problem seems to be with the for loop. It can't iterate between the elements of the object.
I would be more interested in retrieving the
Message property of the last element from the log thus not requiring the for loop.
Can you think of a way in which I could do that?
I've tried this:
var lastElem = colLoggedEvents.Item(colLoggedEvents.Count-1);
but it doesn't work.
Thanks.