Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_qjdelete( <cqueue>, <njobid> ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_QJDELETE( <cQueue>, <nJobID> )


Parameters

<cQueue>
Name of the print queue. The name of the queue may be prefixed with the 
name of the server on which it resides:

N_QJDELETE('FS2\LASER2', nJob)

<nJobID>
Job ID number.


Returns

Logical true if successful, false otherwise. Use N_ERROR() to obtain an 
error code if unsuccessful.


Description

Deletes a job in a print queue.

The job ID number must have been obtained previously from, for example, 
N_QJLIST().

In order to delete a job, it must have been submitted by the user 
logged in at the current station, or the user must be assigned as a 
queue operator or have access equivalent to SUPERVISOR.


Example

// Delete selected job from print queue
IF ALERT('Delete job #'+STR(JobId), {'Yes','No'}) = 1
  N_QJDELETE('printq_0', JobId)
ENDIF



See Also: N_QJLIST()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson