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 5: MethodsVisible MethodSyntaxApplication.VisibleApplies ToApplicationDescriptionSets the <strong>Scheduler</strong> main window to visible.DiscussionUse this method to force <strong>Scheduler</strong> to make the main window visibleand to keep <strong>Scheduler</strong> running. If <strong>Scheduler</strong> main window is not visibleand the reference to the <strong>Scheduler</strong> application object is set to Nothing,<strong>Scheduler</strong> is automatically closed. This method will only make <strong>Scheduler</strong>visible; it does not make it invisible.Return TypeNothingExampleThe next example shows the syntax for using the Visible method of theapplication object.Sub Main()Dim objSchedApp As ObjectSet objSchedApp = CreateObject("Cognosbatcher.Application")'make <strong>Scheduler</strong> visible, and therefore leave it open after'objSchedApp is terminatedobjSchedApp.VisibleSet objSchedApp = NothingEnd Sub<strong>Automate</strong> <strong>Scheduler</strong> <strong>Using</strong> <strong>Macros</strong> 39

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

Saved successfully!

Ooh no, something went wrong!