The editor not run the sqldb object lazarus / 9-Editor ---------------------------------------------------------------------- rastrahm · 2006-01-12 17:18 Hello I install in Debian Sarge 3.1 Lazarus 0.9.10, this run very well, but I install package sqldb, I insert a button in a form and do doble- click in this and the editor insert the lines from the object. I insert a pgconnection or mysqlconnection and do doble-click and the editor make a error from TConstructor not found sqldb or other source not found. What is the problem? ---------------------------------------------------------------------- matthijs · 2006-01-12 18:49 The problem seems to be that the TLoginEvent has not been defined yet. Also a login screen for database is not part of Lazarus or SQLDb. You can however safely use the SQLdb package. ---------------------------------------------------------------------- rastrahm · 2006-01-19 22:57 I don´t understand, I create a component in a screen, Then not run, I need agree a line for this in fpc.cfg?. Remenber what is a pgconnection object, whitout conection ---------------------------------------------------------------------- felipemdc · 2006-01-20 10:25 I think he meant that you can only do the connection at runtime at the moment, ..... unless someone implements a login form. ---------------------------------------------------------------------- matthijs · 2006-01-20 16:50 No, what I meant is: You cannot use the login-event at the moment. You can make your own login-form and enter the given information in the TDatabase.UserName and TDatabase.Password. Something like: Code: [Select]   FormLogin := TFormLogin.Create(nil);   try     FormLogin.ShomModal;     with MySQLXXConnection1 do begin       UserName := FormLogin.Username;       Password := FormLogin.Password;     end;   finally     FormLogin.Free;   end;   MySQLXXConnection1.Open; FormLogin would be a form with two edits and each edit would fill a property (UserName and Password) from FormLogin. If you want, I can make a complete example for this. You can however connect in Design time as well, you only have to fill the properties UserName and Password of TDatabase. When you have done so (and filled host and database), you can set the active property to true. ---------------------------------------------------------------------- rastrahm · 2006-02-07 13:37 I don't understand, the mensagge is "The component editor of class TDefaultComponentEditor has created the error: Don't have find the metod, please repair the error look in screen, this message appears in the moment what I set in the form the component of DB and them I have dobleclick over this ---------------------------------------------------------------------- matthijs · 2006-02-07 13:48 The error you have to fix is (according to the IDE ): Quote  Error: identifier not found: TLoginEvent TLoginEvent is not yet defined in FPC / Lazarus, so you cannot use the OnLogin-event at this moment. Double clicking on a component creates a standard event for that component. The Connection-component has only one event (OnLogin). As I said the TLoginEvent is not yet defined, so you cannot use it. I do not know how I can explain it more clearly. ---------------------------------------------------------------------- rastrahm · 2006-02-08 21:18 Ok, but I place a button in a form, and I creates a standard event for that component in present the pgconnect component a them display "The component editor of class TDefaultComponentEditor has created the error: Don't have find the metod, please repair the error look in screen", I don't create event in DBSQL component, is in a button or anywhere component in the form, and the editor windows indicated then declaration units in a begin of the source code ---------------------------------------------------------------------- Anonymous · 2006-05-20 15:34 Quote from: "rastrahm"I don't understand, the mensagge is "The component editor of class TDefaultComponentEditor has created the error: Don't have find the metod, please repair the error look in screen, this message appears in the moment what I set in the form the component of DB and thmem I have dobleclick over thisCode: [Select][u] [/u][i][b][color=red][/color][/b][quote][/quote][/i][list=](http://)ht tp://[/list][/list]