zeoslib using manual lazarus / 16-Databases ---------------------------------------------------------------------- notebook · 2011-07-31 11:07 I don't want use visual component, but all defined in code, I try but this don't work???? ---------------------------------------------------------------------- nicke85 · 2011-07-31 12:00 You must create each component which use in visual developing.. eg. Code: [Select]var connection : TZConnection; table: TZTable; begin connection := TZConnection.Create(nil); table := TZTable.Create(nil); with connection do  begin   HostName := 'your host machine';   Database := ' name of your database';   User := 'user name';   Password := 'your password';   Protocol := 'set which kind of database you use';  end;  connection.connect;  table.TableName := 'your table name'; // or use ZQuery but define first and than create   .. ..than set properties for each commponent ---------------------------------------------------------------------- JD · 2011-07-31 12:53 Quote from: notebook on July 31, 2011, 01:07:51 pmI don't want use visual component, but all defined in code, I try but this don't work???? Put the required files in the "Uses" clause of your project files. Once you do that, you can manipulate the Zeos library all you want. ---------------------------------------------------------------------- BlueIcaro · 2011-07-31 18:17 Quote from: notebook on July 31, 2011, 01:07:51 pmI don't want use visual component, but all defined in code, I try but this don't work???? Why?, is there any advantage? /BlueIcaro ---------------------------------------------------------------------- notebook · 2011-07-31 20:28 Quote from: BlueIcaro on July 31, 2011, 08:17:10 pmQuote from: notebook on July 31, 2011, 01:07:51 pmI don't want use visual component, but all defined in code, I try but this don't work???? Why?, is there any advantage? /BlueIcaro yes, You can create one unit  and one method with parameter(for connection and query), and only call method with parameter. parameter ia one string(query) in other unit you can put Bussines layer. and you have multi layer app which is easy for maintenance.