CURD.SetScheduledTaskIDs Method: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
mNo edit summary
m (Change VB.NET to .NET.)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:cURD.SetScheduledTaskIDs Method}}{{Template:API}}{{Template:APIBreadcrumb|9|.[[CURD_Class|cURD]]}}
{{DISPLAYTITLE:cURD.SetScheduledTaskIDs Method}}{{Template:API}}{{Template:APIBreadcrumb|.[[CURD_Class|cURD]]}}




<onlyinclude>Assigns scheduled tasks to the URD. (Alternatively, VB.NET users can use the ScheduledTaskIDs() property to get or set the task IDs.)</onlyinclude>
<onlyinclude>Assigns scheduled tasks to the URD.</onlyinclude>
 
 
'''Remarks''': Alternatively, .NET users can use the <code>ScheduledTaskIDs()</code> property in the class to get or set the task IDs.


== Syntax ==
== Syntax ==

Latest revision as of 21:22, 17 August 2017

APIWiki.png


Member of: SynthesisAPI.cURD


Assigns scheduled tasks to the URD.


Remarks: Alternatively, .NET users can use the ScheduledTaskIDs() property in the class to get or set the task IDs.

Syntax

.SetScheduledTaskIDs(arr())

Parameters

arr()

Required. Long. An array of the numeric IDs of the scheduled tasks to be assigned to the URD.


Example

This example assumes that the repository contains existing tasks.

VBA

 ... 

 'Add code to create a new URD or get an existing URD. 
 Dim aURD As cURD
 ... 

 'Create an array and define the tasks to be assigned. For this example, 
 'assume that task ID#2 and ID#4 are to be assigned to the URD. 
 Dim myarray(1) As Long
 myarray(0) = 2
 myarray(1) = 4
 
 'Assign the tasks to the URD. 
 Call aURD.SetScheduledTaskIDs(myarray)