CUPSJobMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

CUPSJobMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class CUPS MBS Tools Plugin 9.7 ✅ Yes ❌ No ✅ Yes ❌ No Desktop, Console & Web
The class for job details.
Example
dim jobs() as CUPSJobMBS = CUPSMBS.GetJobs("", true, CUPSMBS.kWhichJobsActive)

if UBound(jobs)<0 then
MsgBox "no job"
else

dim j as CUPSJobMBS = jobs(0)
dim lines(-1) as string

lines.Append "Title: "+j.Title
lines.Append "User: "+j.User
lines.Append "Format: "+j.Format
lines.Append "Dest: "+j.Dest
lines.Append "ID: "+str(j.ID)
lines.Append "Priority: "+str(j.Priority)
lines.Append "Size: "+str(j.Size)
lines.Append "State: "+str(j.State)

if j.CompletedTime<>nil then
lines.Append "CompletedTime: "+j.CompletedTime.AbbreviatedDate+" "+j.CompletedTime.longtime
else
lines.Append "CompletedTime: nil"
end if

if j.CreationTime<>nil then
lines.Append "CreationTime: "+j.CreationTime.AbbreviatedDate+" "+j.CreationTime.longtime
else
lines.Append "CreationTime: nil"
end if

if j.ProcessingTime<>nil then
lines.Append "ProcessingTime: "+j.ProcessingTime.AbbreviatedDate+" "+j.ProcessingTime.longtime
else
lines.Append "ProcessingTime: nil"
end if

MsgBox join(lines,EndOfLine)

end if

This class has no sub classes.

Some methods using this class:

Some examples using this class:


The items on this page are in the following plugins: MBS Tools Plugin.


CUPSErrorExceptionMBS   -   CUPSMissingFunctionExceptionMBS


💬 Ask a question or report a problem