cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
319
Views
0
Helpful
3
Replies

CRA scripts - global variables

fgarcia
Level 1
Level 1

Hello, I would like to know if it is possible to make a variable that mantains the value when stops the script, I mean, one call is made and this variable starts with value 0 and when the script is run completely the variable has value 3 and when another call is made instead of having the value 0 for the same variable, I would like that this variable has value 3 as this is the last value that the variable had in the last call. This variable behaves as a global variable not a local variable.

Thank you.

Felipe Garcia

3 Replies 3

adignan
Level 8
Level 8

I do not believe so. The variables are based each session (call). Maybe you could write the value to the registry (not my favorite solution) and keep track of it there.

My .02 cents

Terrible of me, you may also write the value to a sql table..

My .02 cents

At which registry do i have to save the value? Is it the one of Windows or is another one? And for the sql how do i save it at the database?

Thank you.