 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Martyn Ayers Guest
|
Posted: Sun Aug 17, 2003 7:33 pm Post subject: Re: SQL Server DTS and TApplication |
|
|
J O,
| Quote: | There is an Application in the DTS_TLB, so that's probably what's hosing
this up for me,
|
Correct.
| Quote: | but what I'm hoping for is a way around this without having
to create another form just for TApplication stuff.
Any suggestions?
|
Yes, just put DTS_TLB at the start of your Uses list, and Forms
immediately after it.
Cheers, Martyn
|
|
| Back to top |
|
 |
Euan Garden Guest
|
Posted: Mon Aug 18, 2003 5:35 am Post subject: Re: SQL Server DTS and TApplication |
|
|
In addition to Martins suggestion you can rename the class when you use the
TypeLib Importer, something like TDTSApplication.
-Euan
"J O Holloway" <jholloway (AT) pinncorp (DOT) com> wrote
| Quote: | I'm using Delphi to programmatically control/configure DTS packages, and
I've noticed that in the unit where I'm using the DTS_TLB package, I can't
call on any of the TApplication stuff. For example, I can't do a
messagebox
nor an application.ProcessMessages.
If I create another form, and don't have the DTS_TLB in that unit's uses
clause, then everything is fine.
There is an Application in the DTS_TLB, so that's probably what's hosing
this up for me, but what I'm hoping for is a way around this without
having
to create another form just for TApplication stuff.
Any suggestions?
TIA
|
|
|
| Back to top |
|
 |
Jeremy Collins Guest
|
Posted: Mon Aug 18, 2003 7:59 am Post subject: Re: SQL Server DTS and TApplication |
|
|
J O Holloway wrote:
| Quote: | I'm using Delphi to programmatically control/configure DTS packages, and
I've noticed that in the unit where I'm using the DTS_TLB package, I can't
call on any of the TApplication stuff. For example, I can't do a messagebox
nor an application.ProcessMessages.
Any suggestions?
|
In addition to the others, you can explicitly refer to TApplication by
adding the unit name:
Forms.Application.MessageBox(...);
--
jc
Remove the -not from email
|
|
| Back to top |
|
 |
J O Holloway Guest
|
Posted: Mon Aug 18, 2003 2:00 pm Post subject: Re: SQL Server DTS and TApplication |
|
|
Thanks, all!
"J O Holloway" <jholloway (AT) pinncorp (DOT) com> wrote
| Quote: | I'm using Delphi to programmatically control/configure DTS packages, and
I've noticed that in the unit where I'm using the DTS_TLB package, I can't
call on any of the TApplication stuff. For example, I can't do a
messagebox
nor an application.ProcessMessages.
If I create another form, and don't have the DTS_TLB in that unit's uses
clause, then everything is fine.
There is an Application in the DTS_TLB, so that's probably what's hosing
this up for me, but what I'm hoping for is a way around this without
having
to create another form just for TApplication stuff.
Any suggestions?
TIA
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|