stop variables being global to all tasks?

Discuss RoboTask here
Post Reply
David.Marsh
Posts: 11
Joined: Mon Aug 02, 2004 3:15 am

stop variables being global to all tasks?

Post by David.Marsh »

Is there a way to stop variables from being global to all tasks.
I have scenarios where I have multiple tasks that use the same variable
name and sometimes these tasks are running at the same time and one
task sets a variable then another task sets that variable before the
first task makes use of the variable and the first task now uses the
variable value set by the second task not the value it set for the
variable.
wredeen
Posts: 2
Joined: Wed Apr 27, 2005 7:07 am
Location: United States

stop variables being global to all tasks?

Post by wredeen »

I am having this problem also. I changed all the variables to be uniques for the task running at the same time but by morning all variables have the same value.
The variables are KEYWORD1, KEYWORD2, KEYWORD3
I thought renaming would stop the variables from using the same value but it didn't. Really surprising.
wredeen
Posts: 2
Joined: Wed Apr 27, 2005 7:07 am
Location: United States

stop variables being global to all tasks?

Post by wredeen »

I also deleted the variables at the beginning of each task to make sure they were clean. The variable held for a four hours but then assumed the value of one of the other variables.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

stop variables being global to all tasks?

Post by Oleg »

Variables can't change their values spontaneously. It means that your variables is used in some task.
Post Reply