11.07.2015 Views

Automate Scheduler Using Macros

Automate Scheduler Using Macros

Automate Scheduler Using Macros

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 6: PropertiesComments PropertySyntaxApplication.CommentsApplies ToApplicationDescriptionReturns the build date of the <strong>Scheduler</strong> OLE server executable.TypeStringAccessReadExampleThis example lists the names of all tasks in <strong>Scheduler</strong> and the build dateof the <strong>Scheduler</strong> executable.Dim SchApp as ObjectDim SchObj as ObjectSub Main()Set SchApp = CreateObject("CognosBatcher.Application")For i = 1 to SchApp.Schedules.CountSet SchObj = SchApp.Schedules.Item(i)MsgBox SchObj.ScheduleNameNext iMsgBox SchApp.CommentsSet SchApp = NothingSet SchObj = NothingEnd Sub50 <strong>Automate</strong> <strong>Scheduler</strong> <strong>Using</strong> <strong>Macros</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!