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.


paulnus
2012-05-17T19:59:48Z
Hello,

Trying to locate and documentation that might key me into how to reference a variable such as last run date of active task inside a .NET condition?

😊 Sorry, I couldn't find that information or if its possible?

Sponsor
Forum information
Support
2012-05-18T06:35:30Z
Take a look at this entry in Variables window.
Support attached the following image(s):

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
trevinom
2012-05-18T17:10:42Z
could it be that he is asking how to reference it from within a .NET task?
Support
2012-05-18T17:12:03Z
Originally Posted by: trevinom 

could it be that he is asking how to reference it from within a .NET task?



Hopefully he will tell us!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
trevinom
2012-05-18T18:35:26Z
So...IS it possible to address variables from a .NET task?
I could use that functionality.
Support
2012-05-18T18:44:16Z
Originally Posted by: trevinom 

So...IS it possible to address variables from a .NET task?
I could use that functionality.



There are two ways. The best way would be to pass the values in that you need. This way the "execution context" is kept. For example, which Task you are at etc.

But, if you are going to use general variables like date and other functions you can create an instance of the VariableReplaceClass in the code. But I guess you are interested in more context sensitive Variables.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
trevinom
2012-05-18T18:49:01Z
yup.
I'm currently just recreating the appropriate variables I need within the .net code.
It would sure be alot easier if they are already there and I can just pick and choose.

can you give an example of how to pass in the values and use it within a .net task?
Support
2012-05-18T18:51:20Z
Originally Posted by: trevinom 

yup.
I'm currently just recreating the appropriate variables I need within the .net code.
It would sure be alot easier if they are already there and I can just pick and choose.

can you give an example of how to pass in the content and use it within a .net task?



I was talking about passing parameters - perhaps I misunderstood you?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2012-05-18T18:53:28Z
I am thinking about the .NET code Task. In the bottom of the Task you have a grid with Parameters. So if you create a string parameter you can pass Task name for example.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
trevinom
2012-05-18T19:18:15Z
I know this sounds basic, and I apoligize in advance for asking, but could you do a screenprint of an example of what your .net task looks like using a simple parameter...including the code in the window of how it's being used?
trevinom
2012-05-18T19:24:11Z
OK. I found the problem. It looks like I didn't have my window opened up enough to show me that there is a pane under the 'parameters(double click to edit)' line. Once I opened the window I noticed how you have a table with 'parameter name' 'data type' and 'value preview'. The world of parameters has opened up to me!!!
trevinom attached the following image(s):
Support
2012-05-18T19:25:36Z
Yes, we will increase default window size and maybe decrease the code window a bit.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top