1. Start Delphi
2. Select File|New application
3. Select Tools|Database Desktop
Change the working directory to your program folder.
4. Select File|New|Table
In the new table, define the fields you need for every record; you need one key field (likely to be a number). when you're ready with that, store the new table in your program folder (or somewhere else, but this is easier).
Quit the Database Desktop.
5. Add a Datasource and Table component to your form and components corresponding to the fields of your database (dbmemo for a memo, etc.). For each component corresponding to a field, set the DataSource property to Datasource1 (or whatever the Datasource component is called, then link it to the field (set the DataField property to the name of the field). For building your database you have to add an edit box to link to your key field as well. You can also add a navigation component. Linkt the table to yourn database by right clicking on it and selecting Explore, then select the database. You get an alias automatically.
6. Save the stuff.
7. Run the program and add records - don't forget to assign values to the key field or you get an error message. For saving a record, use the post method of the table component.
8. For viewing the database edit the main form. You might programmatically add the key field but I leave that to you.
2. Select File|
3. Select Tools|
Change the working directory to your program folder.
4. Select File|
In the new table, define the fields you need for every record; you need one key field (likely to be a number). when you're ready with that, store the new table in your program folder (or somewhere else, but this is easier).
Quit the Database Desktop.
5. Add a Datasource and Table component to your form and components corresponding to the fields of your database (dbmemo for a memo, etc.). For each component corresponding to a field, set the DataSource property to Datasource1 (or whatever the Datasource component is called, then link it to the field (set the DataField property to the name of the field). For building your database you have to add an edit box to link to your key field as well. You can also add a navigation component. Linkt the table to yourn database by right clicking on it and selecting Explore, then select the database. You get an alias automatically.
6. Save the stuff.
7. Run the program and add records - don't forget to assign values to the key field or you get an error message. For saving a record, use the post method of the table component.
8. For viewing the database edit the main form. You might programmatically add the key field but I leave that to you.
Hope this helps
[This message has been edited by peter (edited 02-17-2001).]