Sunday, 2 February 2014

Q) Explain about Delphi`s VCL?
Ans. Delphi is easier to use rather than the API`s. It has strong windows connection and Borland has made things possible for portability on windows. It has a strong library and it maps windows 32. It supports API`s for properties and events. Borland is taking enough measures for back portability for windows.
Q) What is project file in delphi?
Ans. File with .dpr extension is the project file. It comprises all the unit names used in the application along with their path in the hard disk (and the form name if the unit is associated with a .dfm file). It also instantiates the auto-create forms. We can also write code for application initialisation in begin..end blocks in .dpr file.
Q) Explain about event handler?
Ans. Use for event handlers for make sure that the transactions and operations confirm to the business code of ethic. They can significantly affect the data packets which are being sent out to the server for update. Data packets are very useful in giving critical updates at runtime.
Q ) Explain about DPR ?


Ans.Apart from two important files (PAS and DFM) there is a third file known as (DPR) or Delphi project file. Delphi project file is automatically built by the compiler. There are two ways to edit the file one is through manually and the other is through Delphi project manager. The source file which you will be seeing is a Pascal source file. 
Q) What is the use of UDL files in Delphi?
Ans. If you want to store the server connection information outside the application which can be retrieved later during connecting time. This is very useful in creating UDL files which are very helpful where hard coded connection string is not acceptable. Also try to save the documents in the form of .udl which will help you to connect databases easily.

Q) What is the procedure to access the database from Delphi ?

Ans. - To access the database the BDE needs to be configured as it defines an alias for the database that has to be connected. 

- The configuration allows the avoidance of coding the directory path and it just takes the referring of the alias. 

- The creation of three objects is required to access the database and that includes: Query or table object that in synchronization with the alias and it also fetches some data. 

- Data source object that allows the linking between the data and the controls used to connect the database. 

- Setting the active property on the table or query to TRUE will open the database and allow the accessing to be done.