i have created 2 forms A login form & A main form i successfully logged in To the main form
here is the code that i use to login
Delphi-Quellcode:
SQL := Tloginclass.Create;
try
SQL.Login:= trim(Usrnm.Text);
SQL.passwd := trim(passwd.Text);
if SQl.logins
then
begin
LoginSuccess := True;
end
i retrieve and validate logins from a
unit class wich is Tloginclass ,,
but now how to i set the data for each user logged in to the main form ?
i try somthing like this after login
Mainform.listusers.Items.Add(SQL.Login);
but this is not logical because this showing only text how the application know the differents between user who loggedin like there is bob and martin and james ,etc are online now and read there user names ? any idea about this iam trying to understand the logic of this concept.
i ask this question on here :
http://stackoverflow.com/questions/2...o-another-form