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.


lal
  •  lal
  • No customer Topic Starter
2011-06-21T14:20:11Z
Not sure if this is a feature request, or something that can already be easily done. I need to do a file transmission of a file that has a filename that is a hex number incremented by 1 each time it generates. I would like to be able to validate that each time the job transfers the file, that there has been no skip in the sequence number - i.e. no files have been missed or skipped. In other words, the filename is already generated by another application, but when the job picks up the file, I want to validate that the hex sequence number in the filename is the next expected sequence number - that it can store the previous hex sequence number from the previous file transfer, add 1 to it, and validate that the next file sequence number that appears is the correct sequence number. (I have jobs that do something like this for regular sequence numbers, the difficulty here is that for this file, it's a hex sequence number, so I can't use same VisualCron function to do this.)
Sponsor
Forum information
Support
2011-06-21T14:26:58Z
Where would you like to validate this? I mean, if a hex function existed - how would you use it if we look at current features?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
2011-06-22T06:34:33Z
You could have some HEX functions and you could use them in a condition.

{MATH(Add|Hex|Value1|Value2|OutFormat)}
{MATH(Substract|Hex|Value1|Value2|OutFormat)}
{MATH(Multiply|Hex|Value1|Value2|OutFormat)}
{MATH(Devide|Hex|Value1|Value2|OutFormat)}

Or by using your own .NET hexcheck application which will compare two values and returns an error or not, you can use the on error on a task.

The 1st will be a feature request though.

[added later]
If the hex functions are comming, than there need to be hex user defined variable type.
[/added later]

Regards,
Erik
Uses Visualcron since 2006.
Support
2011-06-22T06:36:42Z
Thanks Erik, if that is enough for lal we will add something like that.

Originally Posted by: ErikC 

You could have some HEX functions and you could use them in a condition.

{MATH(Add|Hex|Value1|Value2|OutFormat)}
{MATH(Substract|Hex|Value1|Value2|OutFormat)}
{MATH(Multiply|Hex|Value1|Value2|OutFormat)}
{MATH(Devide|Hex|Value1|Value2|OutFormat)}

Or by using your own .NET hexcheck application which will compare two values and returns an error or not, you can use the on error on a task.

The 1st will be a feature request though.

Regards,
Erik



Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
2011-06-22T06:43:52Z
Don't forget:

ErikC wrote:

[added later]
If the hex functions are comming, than there need to be hex user defined variable type.
[/added later]



Uses Visualcron since 2006.
lal
  •  lal
  • No customer Topic Starter
2011-06-27T15:31:40Z
Originally Posted by: ErikC 

You could have some HEX functions and you could use them in a condition.

{MATH(Add|Hex|Value1|Value2|OutFormat)}
{MATH(Substract|Hex|Value1|Value2|OutFormat)}
{MATH(Multiply|Hex|Value1|Value2|OutFormat)}
{MATH(Devide|Hex|Value1|Value2|OutFormat)}

Or by using your own .NET hexcheck application which will compare two values and returns an error or not, you can use the on error on a task.

The 1st will be a feature request though.

[added later]
If the hex functions are comming, than there need to be hex user defined variable type.
[/added later]

Regards,
Erik



Exactly. I do something like that with the add integer math function, and I'd like to be able to do that with a hex number in place of the integer.
Scroll to Top