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 

TQuery : create at Design or at Runtime?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop)
View previous topic :: View next topic  
Author Message
Marcio Ehrlich
Guest





PostPosted: Tue Jan 20, 2004 12:42 am    Post subject: TQuery : create at Design or at Runtime? Reply with quote



I need a TQuery for several simple queries along my application.
Which is the better approach: to include a TQuery component at MainForm and
use it when needed or to create/free the TQueries at runtime every time?
Thanks,
Marcio


Back to top
Jeremy Collins
Guest





PostPosted: Tue Jan 20, 2004 9:00 am    Post subject: Re: TQuery : create at Design or at Runtime? Reply with quote



Marcio Ehrlich wrote:

Quote:
I need a TQuery for several simple queries along my application.
Which is the better approach: to include a TQuery component at MainForm and
use it when needed or to create/free the TQueries at runtime every time?

The former can be slightly less tedious, as you can set all of the
properties that won't change, and just modify the SQL as required
at runtime.

--
jc

Remove the -not from email

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop) 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.