I 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.