ReadFromString Method in Class SMS_ScheduleMethods
The ReadFromString WMI class method decodes interval strings and places the results into SMS_ScheduleToken objects.
The following syntax is simplified from MOF code and is intended to show you the definition of the method.
sint32 ReadFromString(
[in] string StringData,
[out] SMS_ScheduleToken TokenData[]
);
Parameters
StringData
Data type: string
Qualifiers: InInterval string to be decoded and placed into SMS_ScheduleToken objects.
TokenData
Data type: SMS_ScheduleToken[]
Qualifiers: OutSchedule tokens decoded from StringData.
Return Values
The ReadFromString method returns a sint32 with a value that is always zero (0).
Example Code
The following example decodes an SMS schedule interval string into a schedule token.
Dim clsScheduleMethods As SWbemObject Dim sInterval As String Dim avTokens() As Variant Dim vToken As Variant Set clsScheduleMethods = Services.Get("SMS_ScheduleMethods") sInterval = "000A4700002BC400" clsScheduleMethods.ReadFromString sInterval, avTokens For each vToken In avTokens MsgBox vToken.GetObjectText_ Next
See Also
Determining A Tally Interval, SMS_ScheduleMethods, SMS_ScheduleToken, WriteToString