Posted Mon, 09 Sep 2019 21:42:09 GMT by


At my AM task I need to use an "OnTaskEnd" to write final variable values, that was created and modified in "Main" function.

How I can get that variables in Events?

The only way I found is to create a global Task Variables and then use "Set" instead of "Create" in "Main". But I use dynamically created variables (read name and value from external file) and it is not a very handy not having all variables available inside Events.

May be useful to add a flag at "Create variable" called "Global" with the meaning that the variable will be visible at all functions and events.

Posted Tue, 10 Sep 2019 21:51:51 GMT by

Hello Alex,

Yes, the task variables is probably your best bet. The other option is to write the data into a temp file and read it back into your desired variable.

You must be signed in to post in this forum.