I have a form with a dbgrid, memo and a button. (Unit = main)
I also have a data module with a table (Paradox) and datasource. (unit = dm1)
I want to do three things:
1. display contents of table in dbgrid.
2. on datasource.updatedata and datasource.change I want to update a concantinated string of table data in the memo.
3. on button.click I want to place a lock on the table.
Problem: 1 & 2 seem to require that the dm1 Uses: includes main. However, 3 seems to require that main Uses: includes DM1.
How can the data module be used when events are being triggered from both the form and the data module?
I also have a data module with a table (Paradox) and datasource. (unit = dm1)
I want to do three things:
1. display contents of table in dbgrid.
2. on datasource.updatedata and datasource.change I want to update a concantinated string of table data in the memo.
3. on button.click I want to place a lock on the table.
Problem: 1 & 2 seem to require that the dm1 Uses: includes main. However, 3 seems to require that main Uses: includes DM1.
How can the data module be used when events are being triggered from both the form and the data module?