Tag - Specify label to associate with job object

Description

You configure Tag to be a string value that uniquely identifies a job object.

Tag is particularly useful in programs that would otherwise need to define the job object as a global variable, or pass the object as an argument between callback routines.

You can return the job object with the findJob function by specifying the Tag property value.

Characteristics

Usage

Job object

Read-only

Never

Data type

String

Values

The default value is an empty string.

Examples

Suppose you create a job object in the job manager jm.

job1 = createJob(jm);

You can assign job1 a unique label using Tag.

set(job1,'Tag','MyFirstJob')

You can identify and access job1 using the findJob function and the Tag property value.

job_one = findJob(jm,'Tag','MyFirstJob');

See Also

Functions

findJob

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS