Interview Questions

How can I manipulate data programatically?

Delphi Interview Questions


(Continued from previous question...)

How can I manipulate data programatically?

It is sometimes desirable to write code that deals with databases but is not associated with any particular form or user-interface details. To do this, you declare variables of type TDatabase, TTable and/or TQuery, and set their properties in code just as you would in the design environment. Make sure that you include the DB and DBTables units in your uses statement, or you will get "unknown identifier" errors during compilation.

(Continued on next question...)

Other Interview Questions