IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#19058 - 01/24/07 03:34 AM PERL and Job Info Variables
Phil Wills Offline
Junior Member

Registered: 01/24/07
Posts: 3
Loc: Devon, England, UK
Simple question and I'm sure there's a very simple answer somewhere out there ... In the same way one can set a job information variable using VBScript, is there a similar way to do it using PERL? i.e. I need the PERL equivalent of the VBScript statement "Watch.setJobInfo 9, variableName".

Thanks, Phil.

Top
#19059 - 01/24/07 08:47 AM Re: PERL and Job Info Variables
Anonymous
Unregistered


Hello,

Here is a link that has the syntax

http://www.objectiflune.com/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=47;t=000017#000000

Top
#19060 - 01/24/07 09:01 AM Re: PERL and Job Info Variables
Phil Wills Offline
Junior Member

Registered: 01/24/07
Posts: 3
Loc: Devon, England, UK
Thanks LAPD. I am familiar with the "$Watch->..." notation but nothing is documented anywhere regarding specific usage of it. The link you've supplied contains similar examples of the syntax but not what I'm looking for. I need the exact syntax to set a job information variable, i.e., is it something along the lines of "$Watch->SetJobInfo(9, variableName)"?

Thanks again, Phil.

Top
#19061 - 01/24/07 10:45 AM Re: PERL and Job Info Variables
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1984
Loc: Objectif Lune, Montreal, Qc
Phil,

The exact syntax for ActivePERL is
Code:
$Watch->SetJobInfo(9, "This is my new value")
Let's say you wanted to store in JobInfo 9 a value that is currently stored in JobInfo 8, you'd then use the following syntax:
Code:
$Watch->SetJobInfo(9, $Watch->GetJobInfo(8))
I hope this helps.
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top
#19062 - 01/25/07 04:53 AM Re: PERL and Job Info Variables
Phil Wills Offline
Junior Member

Registered: 01/24/07
Posts: 3
Loc: Devon, England, UK
Thanks, Philippe. Problem solved.

Top