[DUG] Chick or egg.

Marshland Engineering marshland at marshland.co.nz
Sun Jun 24 22:57:42 NZST 2012


I'm opening an MYSql file. I am reading data from a ini file to pre-populate 
the fLogin edit boxes.

I can't open the SQL until I have logged in and the datamodule does not 
allow edit boxes.

If I put the TMyConnection on a 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 ?  One is having connection function left on the DM form but 
it references the parameters from fLogin.

I guess having a window on the DM form would be the answer.

Thanks Wallace. 



More information about the Delphi mailing list