Features:
The top-level object in the Queue UCX component.
Contains information about a particular queue on the NetWare server.
Acts as an entry point to other Queue objects.
Lists the collection of jobs in a queue.
object.Jobs
Jobs.
Read-only.
This example lists the collection of jobs in the queue Sample_Job_Queue. Ensure that the specified queue is existing.
set queue = CreateObject("UCX:Queue")
queue.Name = "Sample_Job_Queue"
Set Jobs = queue.Jobs
Returns or sets a queue name.
object.Name[=Queuename As String]
String.
Read/write.
Queuename is an optional parameter that specifies the new name of the queue.
This example sets the name of the queue as Sample_Job_Queue. Ensure that the specified queue is existing.
set queue = CreateObject("UCX:Queue")
’Setting queue name to print Queue
queue.Name = "Sample_Job_Queue"
print("Name of the Queue: " & queue.Name)
Returns a queue type.
object.Type
String.
Read-only.
This example returns the queue type of Sample_Job_Queue. Ensure that the specified queue is existing.
set queue = CreateObject("UCX:Queue")
queue.Name = "Sample_Job_Queue"
print("Type of the Queue: " & queue.Type)
Attaches the calling process as the job server for the specified in the Name property.
object.Attach()
None.
Boolean. Returns TRUE if the job server is successfully attached.Otherwise, FALSE.
This example attaches the calling process as the job server for the queue Sample_Job_Queue. Ensure that the specified queue is existing.
set Queue = CreateObject("ucx:Queue")
Queue.Name = "Sample_Job_Queue"
Queue.Attach
Detaches the calling process as the job server for the queue specified in the Name property.
object.Detach()
None.
Boolean. Returns TRUE if the job server is successfully detached. Otherwise, FALSE.
This example detaches the calling process from the queue Sample_Job_Queue. Ensure that the specified queue is existing.
set Queue = CreateObject("ucx:Queue")
Queue.Name = "Sample_Job_Queue"
Queue.Attach
Queue.Detach