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 

non visual database component

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





PostPosted: Thu Dec 28, 2006 5:36 pm    Post subject: non visual database component Reply with quote



Hi,

I would like to create a command-line-based utility that
accesses a table and displays it on the screen(command
prompt screen); but as far as I can see, all of these
DBTables components require a 'form'. Are there a set
of non-visual components (probably library would be
more appropriate) that I can use to make a command
line utility. For this particular application, I don't
need a UI.

Thanks. Any information appreciated.

Edmund
Back to top
Edmund
Guest





PostPosted: Thu Dec 28, 2006 6:20 pm    Post subject: Re: non visual database component Reply with quote



I suppose posting here helps jog the memory. While the
Delphi 7 help didn't help much, I did end up remembering
it was along the lines of :

var
myTable : TTable;
Self : TComponent;

..
myTable := TTable.create(Self);


Of course, this 'works', but I then ended up replacing "Self" with
"Null". No can do. Then I searched the net more on
'ttable.create(self)' and came across a link that had
ttable.create(nil) and bingo, it worked.

I do realize posting an answer to my own question is alittle
silly, but having not played around with Delphi and databases
in a while, I am quite rusty.

Anyway, this is a good 'for future reference' post. :)

Edmund
Back to top
Wayne Niddery [TeamB]
Guest





PostPosted: Fri Dec 29, 2006 9:11 am    Post subject: Re: non visual database component Reply with quote



Edmund wrote:
Quote:

I do realize posting an answer to my own question is alittle
silly, but having not played around with Delphi and databases
in a while, I am quite rusty.

Not at all, it's always good to know you've been able to figure it out, and
as you say, it's a good reference that might help someone else. So followup
is always welcome.

--
Wayne Niddery - Winwright, Inc (www.winwright.ca)
"The two most abundant elements in the universe are hydrogen and
stupidity." - Harlan Ellison
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.