LoadJob method

Applies to

Example

Description

Loads the job description file specified. If a job is currently active and running, you must use the NextJob property to force a job switch. Start a job using the StartJob method.

Syntax

[ReturnValue =] Object.LoadJob(JobFileName)

Part

Data type

Description

Object

Object

An object expression that evaluates to an object in the Applies To list.

JobFileName

String

Full path to the job file to load.

Settings

Return value

Data type: Integer – if the job description is loaded successfully, the method returns zero (0). Otherwise, a negative number is returned. See Event return value constants.

Remarks

If the server is also to be switched, do so before the new job description file is loaded. That is, change the application property DBName before using the LoadJob method.

Classic method

LoadJob