Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


osirisja
2012-01-03T14:01:40Z
Hi support

I'm trying to set a counter variable - is it correct to use the following function?

{MATH(Add|Integer|@tmpfilecnt|1|#000)}

It is working without erroring but I can't see what value it actually stores after it processes. The counter basically increments by one for every file that is processed in a folder.

Also can I pass a value from a task in one job to another task in another job on the same server?

Cheers

Andy
Sponsor
Forum information
ErikC
2012-01-04T07:38:51Z
Hi Andy,

I believe the right notation is: {MATH(Add|Integer|{USERVAR(tmpfilecnt)}|1|#000)}
Not with an @ in there.

In the output of the set variable task you can see the value of the variable.
You also can view the value in the variable window at the user defined section.

Variables are globaly used through all the jobs.
So you can use the same vairable in other jobs as well. Be carefull that variables holds only one value, though.

Regards,
Erik
Uses Visualcron since 2006.
osirisja
2012-01-04T08:46:59Z
Hi Erik

Thanks for the feedback - the '@' is the variable naming convention I use so the variable name is '@tmpfilecnt'. In the Output of the task, I only see the message 'Variable '@tmpfilecnt' was updated to: {MATH(Add|Integer|@tmpfilecnt|1|#000)}' where I would prefer to see the actually value incremented for each file that is processed. If I change the variable to 'Translate to constant when running' I get an error that says 'Unhandled error in RemoveVariable: There is an error in XML document (1, 1).' Which sounds a bit weird.....

Cheers

Andy
osirisja
2012-01-04T08:51:09Z
Hi Erik

I noticed that you have also raised this issue in the 6.0.6 Beta Versions thread.

Cheers

Andy
ErikC
2012-01-04T09:16:39Z
Hi Andy,

Yes, I did post this issue in the beta section of 6.0.6.

However if you make it a string value an having the checkbox set to translate to constant, it should work.

Regards,
Erik
Uses Visualcron since 2006.
Scroll to Top