PdcSchedulerTasks.Open: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == Open(aID as long) as PdcSchedulerTask == Description == == Notes == This property opens a task with the use of it's ID. == Code example == <source l..."
 
No edit summary
 
Line 9: Line 9:


== Code example ==
== Code example ==
This code example opens a schedule with ID 1 and returns its schedule name in a msgbox.


<source lang="vb">
<source lang="vb">
Sub sGetSchedule
dim intScheduleID
dim objScheduleTask


  intScheduleID = 1
  set objScheduleTask = pdc.SchedulerTasks.Open(intScheduleID)
  msgbox objScheduleTask.Name
End Sub
</source>
</source>


== Availability ==
== Availability ==
Available since January 2011 (from version 4.2).
Available since January 2011 (from version 4.2).

Latest revision as of 11:13, 31 July 2013

Declaration

Open(aID as long) as PdcSchedulerTask

Description

Notes

This property opens a task with the use of it's ID.

Code example

This code example opens a schedule with ID 1 and returns its schedule name in a msgbox.

Sub sGetSchedule
dim intScheduleID
dim objScheduleTask

  intScheduleID = 1
  set objScheduleTask = pdc.SchedulerTasks.Open(intScheduleID)

  msgbox objScheduleTask.Name
End Sub

Availability

Available since January 2011 (from version 4.2).