06-27-2005 08:43 AM
06-27-2005 10:49 AM
07-01-2005 09:15 AM
Hi Priya,
VBS has the unpleasant little oddity that you have to use different assignment operators for objects than for normal values. Thus you can write this for an integer:
Dim MyInt : MyInt = 4
But you have to write this for an object:
Dim MyObj : Set MyObj = Root.ChannelGroups.Add("MyChannelGroup")
Time is represented as an object in the DataPlugin API, in order to make it possible to set much smaller units of time than is possible with the native VBS time. This has the drawback that if you request a time from ParseString, you have to use the assignment syntax for objects. Check to make sure that your call to ParseString looks like this:
Dim MyTime : Set MyTime = File.Formatter.ParseString(File.GetCharacters(21), eTime)
...and not like this:
Dim MyTime : MyTime = File.Formatter.ParseString(File.GetCharacters(21), eTime)
Hope that helps,
Myrle