Hi All,
I am using a shared script library and I declared an Object and in the same lib Initialize I made it to Nothing.
I use the script library in the Forms’s button click. When ever i go to another form and return the Object is getting reset to Nothing. But i would like to have the Object retain the value which is assigned first time till i close the database. Is there a way to do this.
Thanks in advance,
Agasthya
Subject: How to make an object global and to hold the value assigned
I haven’t tried it, but I imagine you could declare the object in the Declarations section of the database script and initialize it in the Initialize section. I belive it should then be accessible to any script at any time. I’m not positive, mind you, but it’s worth trying.
Subject: RE: How to make an object global and to hold the value assigned
No – each bit of script has its own context. The problem has been discussed here before, though.
Subject: RE: How to make an object global and to hold the value assigned
Thanks Andre, are there any plans to support the global objects in the newer releases?Agasthya
Subject: No, not possible … Alas: Notes does not support global variables in the scope of a database …
Subject: Workaround global variables
You could save the current value in the database e.g. in a profile document.