Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
New Member
Posts: 22
Registered: ‎02-15-2010

Set a variable that is an object as global variable...

Hi there, I need to know if it's possible to set a variable called "VAR" (which is going to be an instance of a .NET extension dll, using the instruction VAR = Application.Managed.Create("Class", "Class.Class1") as global... If i do this on a form, it's ok, but as long as the form is closed, or i change from that form to another, the variable is erased, and i need it to be persistant in the system, until the users loggs off from slx or i told it to be erased... I'm talking of SLX 7.5 SP2 LAN version (NOT WEB) Thanks in advance Regards

Employee
Posts: 629
Registered: ‎04-24-2009

Re: Set a variable that is an object as global variable...

You should try Application.GlobalInfo.Add() if you haven't already.

 

Thanks

 

Mike

New Member
Posts: 22
Registered: ‎02-15-2010

Re: Set a variable that is an object as global variable...

Worked that way, thanks Mike.
It's nice to know that a .NET variable can be handled using the global variables to persist in time.
Regards