Global Data Modules

Add-in Express™ Support Service
That's what is more important than anything else

Global Data Modules
Can I reuse my existing forms which share a common data module? 
Richard Stevens


Guest


I have an existing Windows app written in D7 where the forms share several data modules - one contains the ADO connection, and one is a business rules layer containing various ClientDataSets.

The data modules are global, as I only want one data connection and the forms need to be kept in synch so sharing the same business rules data module makes sense.

However, it looks to me like global variables aren't supported in ADX - can you confirm this? I can probably work around it but I'd rather not if I don't have to. At the moment I'm trying to create the data modules in the OnAddInInitialise event.

Thanks,
Richard Stevens
Posted 21 Aug, 2006 07:36:51 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Richard,

However, it looks to me like global variables aren't supported in ADX - can you confirm this?


Variables of any visibility level are supported in ADX. You are doing everything right creating your data modules in the OnAddInInitialise event handler.

Posted 25 Aug, 2006 08:30:40 Top
Richard Stevens


Guest


OK, then I am probably being stupid. Not for the first time.

Will have another look. Thanks for the reply!
Posted 25 Aug, 2006 13:38:10 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Richard,

If you have other questions, feel free to ask me.

Posted 04 Sep, 2006 06:09:56 Top