![]() |
|
|
|
#1
|
|||
|
|||
|
In the past I have opened the data module first to ensure all the tables etc are open before the forms.
I'm now opening sql tables via the net and I need to load data (username, location etc) before I open the tables. I want to store that data in a config.ini file and read this when my apps opens, however, the DM has no memos or edit boxes for me to loadfromfile into ? Any suggsetions on how to solve the issue - you may have a completely different way of solving this problem. |
|
#2
|
|||
|
|||
|
If your problem is reading/writing to ini files then see http://www.swissdelphicenter.ch/en/showcode.php?id=160
__________________
Regards, Abdulaziz Jasser |
|
#3
|
|||
|
|||
|
Same issue - connecting to the DB but another angle.
I have a login page - I read the ini file and pre-populate the edit boxes. If I put the TMyConnection on the login page, the datamodule components can't find the tables, even if I add the fLogin to the uses list. If I put the TMyConnection on the DM page and the call fLogin with the on create, I get an access violation message. I assume it is because the DM has not fully created itself and the components. Any Suggestions ? I guess having a window on the DM form would be the answer. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|