Søren Tvede
1/23/2006 11:16:00 AM
You can store global variables for the session in i.e. the system Info class.
Declare your variable in the classdeclaration:
filename MyFileName
You then have to make a method to set and access the variable
filename MyFileName(filename _name = MyFileName)
{
MyFileName = _name;
Return MyFileName;
}
You will be able to set/get your variable using the infolog class
....
// to set the global variable
infolog.MyFileName("c:\temp\test.txt");
....
// to retrieve the variable, i.e.
print infolog.MyFileName();
....
--
Søren Tvede
"smy" wrote:
> I'm trying to store the file name of a printed invoice during posting in a
> global variable. Using SysGlobalCache doesn't seem to work, as for some
> reason the global cache is reset between closing the print form and running
> the invoice printing process. Is there any way to store a truly global
> variable that can be accessed until the user exist the application?
>
> Thanks!