BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: SQL Server DTS and TApplication

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Martyn Ayers
Guest





PostPosted: Sun Aug 17, 2003 7:33 pm    Post subject: Re: SQL Server DTS and TApplication Reply with quote



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





PostPosted: Mon Aug 18, 2003 5:35 am    Post subject: Re: SQL Server DTS and TApplication Reply with quote



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





PostPosted: Mon Aug 18, 2003 7:59 am    Post subject: Re: SQL Server DTS and TApplication Reply with quote



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





PostPosted: Mon Aug 18, 2003 2:00 pm    Post subject: Re: SQL Server DTS and TApplication Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.