Delphi Programming Question:
How can I manipulate data programatically?
Answer:
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.
Previous Question | Next Question |
How do I write a change password function for a Paradox table? | Why do I get compile errors acessing the Sender object in events? |