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: PropertiesApplicationTray PropertySyntaxOptions.ApplicationTrayApplies ToOptionsDescriptionSets or returns whether to run <strong>Scheduler</strong> from the Taskbar Tray.DiscussionUse this property to run <strong>Scheduler</strong> from the Taskbar Tray. If thisproperty is set to True, <strong>Scheduler</strong> runs from the Taskbar Tray. If thisproperty is set to False, <strong>Scheduler</strong> runs as a regular application.TypeBooleanAccessRead/WriteExampleThis example displays whether <strong>Scheduler</strong> is set to run from the TaskbarTray.Sub Main()Dim objSchedApp As ObjectDim objSchedOptions As ObjectDim strReturnValue As StringSet objSchedApp = CreateObject("Cognosbatcher.Application")Set objSchedOptions = objSchedApp.OptionsstrReturnValue = objSchedOptions.ApplicationTrayMsgBox "Will <strong>Scheduler</strong> run from the Taskbar Tray? " & _strReturnValueSet objSchedOptions = NothingSet objSchedApp = NothingEnd Sub42 <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!