Hello,
For some unknown reason I am finding that I cannot write multiple items using LogFileWrite anymore. The following code is fine when writing the first four LogFileWrite lines, each with a single entry, but fails for all the multiple ones. Why is this?
Option Explicit 'Forces the explicit declaration of all the variables in a script.
Dim myGp, i
Set myGp = Data.Root.ChannelGroups(1)
For i = 1 to myGp.Channels.Count
logfilewrite myGp
logfilewrite myGp.Channels.Count
logfilewrite i
logfilewrite myGp.Channels(i).Name
logfilewrite myGp & ", " & myGp.Channels.Count
logfilewrite myGp & ", " & myGp.Channels.Count & ", " & i
logfilewrite myGp & ", " & myGp.Channels.Count & ", " & i & ", " & myGp.Channels(i).Name
logfilewrite i & ", " & myGp.Channels(i).Name
logfilewrite myGp.Channels.Count & ", " & i
Next
Regards, Simon.