Page 1 of 1

stop variables being global to all tasks?

Posted: Mon Aug 02, 2004 3:26 am
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.

stop variables being global to all tasks?

Posted: Wed Apr 27, 2005 7:09 am
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.

stop variables being global to all tasks?

Posted: Wed Apr 27, 2005 7:13 am
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.

stop variables being global to all tasks?

Posted: Wed Apr 27, 2005 7:31 am
by Oleg
Variables can't change their values spontaneously. It means that your variables is used in some task.