lidernetwork Posted April 13, 2018 Share Posted April 13, 2018 I would like to know how we can work with variables that do not mix in sessions in the unigui. I created some global variables in MainModule to save, login, user name, etc ... The problem is that the sessions are merging so if the user 1 logs on to the system and the user 2, only the user 2 gets the data in the variables. I would like to separate this data for each session. I've tried to check the sample project but it does not work as I wanted. How can I do it? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2018 Share Posted April 13, 2018 Hi, http://forums.unigui.com/index.php?/topic/10117-sesion-list/&do=findComment&comment=52688 \FMSoft\Framework\uniGUI\Demos\Desktop\Session List Quote Link to comment Share on other sites More sharing options...
lidernetwork Posted April 13, 2018 Author Share Posted April 13, 2018 thanks for answering I have 3 string variables in the mainmodule and would like to record the user name and password at the time the user logs in. With this example I could not do it because the FMyStringVar variable in the example does not receive any value. So I would like to know where to fill this value in the variable and then use it later? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2018 Share Posted April 13, 2018 Hi, http://forums.unigui.com/index.php?/topic/10117-sesion-list/&do=findComment&comment=52688 \FMSoft\Framework\uniGUI\Demos\Desktop\Session List Have you seen the demo? Quote Link to comment Share on other sites More sharing options...
asapltda Posted April 13, 2018 Share Posted April 13, 2018 use mainmodule Quote Link to comment Share on other sites More sharing options...
lidernetwork Posted April 13, 2018 Author Share Posted April 13, 2018 Yes I have checked the demo but as I mentioned above it does not have an assignment instructions for the FMyStringVar session variable and for this reason I am not understanding how to fill this session string and when? What to do? Quote Link to comment Share on other sites More sharing options...
Oliver Morsch Posted April 13, 2018 Share Posted April 13, 2018 TUniMainModule = class(TUniGUIMainModule) private FUserName: String; public property UserName: String read FUserName write FUserName; end; and on logon form you write: uses MainModule; UniMainModule.UserName := edtUserName.Text; end; Quote Link to comment Share on other sites More sharing options...
lidernetwork Posted April 13, 2018 Author Share Posted April 13, 2018 TUniMainModule = class(TUniGUIMainModule) private FUserName: String; public property UserName: String read FUserName write FUserName; end; and on logon form you write: uses MainModule; UniMainModule.UserName := edtUserName.Text; end; Thank you very much for your help, problem solved! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.