Problem with Data Module
Posted on 1998-09-22
D3/NT4. I have an MDI app. One form is the login form which sets ups a global login for the app. This form accepts username/password, etc and will then pass it to a Data Module which has a 3rd party login and session component on it. My problem is that I can't seem to access the datamodule from the MDI form. I have added the datamodule to the implementation USES clause.
When I access the datamodule, it's something like this:
datamodule.componentName.variable := value;
This compiles OK, however at runtime, the value of the datamodule is nil. I don't have a windows handle to access the datamodule components. How do I get the handle.
I normally would use something like MDIChilren to get the handle for a MDI child window, but this isn't a window, it's a data module. What do I need to do?
Please be specific...