AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Datenbanken Delphi Mysql passing Login data to another form
Thema durchsuchen
Ansicht
Themen-Optionen

Delphi Mysql passing Login data to another form

Ein Thema von drama22 · begonnen am 9. Sep 2014 · letzter Beitrag vom 9. Sep 2014
 
drama22

Registriert seit: 12. Jan 2013
88 Beiträge
 
#1

Delphi Mysql passing Login data to another form

  Alt 9. Sep 2014, 00:00
Datenbank: Mysql • Version: 5 • Zugriff über: Delphi xe5
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

Geändert von drama22 ( 9. Sep 2014 um 00:14 Uhr)
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:40 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz