 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Edmund Guest
|
Posted: Thu Dec 28, 2006 5:36 pm Post subject: non visual database component |
|
|
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
|
Posted: Thu Dec 28, 2006 6:20 pm Post subject: Re: non visual database component |
|
|
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
|
Posted: Fri Dec 29, 2006 9:11 am Post subject: Re: non visual database component |
|
|
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 |
|
 |
|
|
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
|
|