11.07.2015 Views

Automate Scheduler Using Macros

Automate Scheduler Using Macros

Automate Scheduler Using Macros

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 6: PropertiesRegisteredCompany PropertySyntaxApplication.RegisteredCompanyApplies ToApplicationDescriptionReturns the company name to which <strong>Scheduler</strong> is registered.DiscussionUse this property to determine the company name to which <strong>Scheduler</strong>was registered.TypeStringAccessReadExampleThis example lists the names of all tasks in <strong>Scheduler</strong> and the companyname registered for this copy of 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.RegisteredCompanySet SchApp = NothingSet SchObj = NothingEnd Sub116 <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!