 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Verne H. Bohlender Guest
|
Posted: Thu Mar 08, 2007 8:31 am Post subject: Simple database program using ADO |
|
|
I'm looking for ways of using C++ and the VCL tools to make a very
simple Database Program for shall we say Telephone numbers, Addresses
and First Name, Initial and Lastname. There must be a simple way to
use VCL for this or is it just as simple to use straight C++ and could
anyone send me a simple program or where to find such. PLEASE.
Verne |
|
| Back to top |
|
 |
Bob Swart Guest
|
Posted: Fri Mar 09, 2007 9:10 am Post subject: Re: Simple database program using ADO |
|
|
Hi Verne,
| Quote: | I'm looking for ways of using C++ and the VCL tools to make a very
simple Database Program for shall we say Telephone numbers, Addresses
and First Name, Initial and Lastname. There must be a simple way to
use VCL for this
|
See my free tutorial on VCL Database Development using C++(Builder) at
http://www.drbob42.com/examines/examin83.htm
Groetjes,
Bob Swart
--
Bob Swart Training & Consultancy (eBob42.com) Forever Loyal to Delphi
Blog: http://www.drbob42.com/blog - RSS: http://drbob42.com/weblog.xml
New Delphi 2006 Courseware e-books at http://www.eBob42.com/courseware |
|
| Back to top |
|
 |
Verne H. Bohlender Guest
|
Posted: Sat Mar 10, 2007 2:06 am Post subject: Re: Simple database program using ADO |
|
|
I have been looking at the Tutorial but thought someone might just
happen to have a simple one already made up to go with my simple
'test' table I've set up but if no one shows I'll just have to work a
little more on the Tutorial and see what I can come up with.
I have your book on my desk top right now, thanks.
Verne
On Fri, 09 Mar 2007 09:06:05 +0100, Bob Swart <b.swart (AT) chello (DOT) nl>
wrote:
| Quote: | Hi Verne,
I'm looking for ways of using C++ and the VCL tools to make a very
simple Database Program for shall we say Telephone numbers, Addresses
and First Name, Initial and Lastname. There must be a simple way to
use VCL for this
See my free tutorial on VCL Database Development using C++(Builder) at
http://www.drbob42.com/examines/examin83.htm
Verne
Groetjes,
Bob Swart |
|
|
| Back to top |
|
 |
DreamChaser Guest
|
Posted: Sat Mar 10, 2007 8:02 am Post subject: Re: Simple database program using ADO |
|
|
Verne H. Bohlender wrote:
| Quote: | I have been looking at the Tutorial but thought someone might just
happen to have a simple one already made up to go with my simple
'test' table I've set up but if no one shows I'll just have to work a
little more on the Tutorial and see what I can come up with.
I have your book on my desk top right now, thanks.
Verne
On Fri, 09 Mar 2007 09:06:05 +0100, Bob Swart <b.swart (AT) chello (DOT) nl
wrote:
Hi Verne,
I'm looking for ways of using C++ and the VCL tools to make a very
simple Database Program for shall we say Telephone numbers, Addresses
and First Name, Initial and Lastname. There must be a simple way to
use VCL for this
See my free tutorial on VCL Database Development using C++(Builder) at
http://www.drbob42.com/examines/examin83.htm
Verne
Groetjes,
Bob Swart
I posted one for you in the Borland.public.attachments newsgroup |
DC |
|
| Back to top |
|
 |
Verne H. Bohlender Guest
|
Posted: Sun Mar 11, 2007 7:18 am Post subject: Re: Simple database program using ADO |
|
|
On Fri, 09 Mar 2007 20:02:31 -0600, DreamChaser <NO-Spam@No-Span.net>
wrote:
I'm so green at this as I've normally struggled until I found or
forgot about it. Just how to find this work of yours, please.
Verne
| Quote: | Verne H. Bohlender wrote:
I have been looking at the Tutorial but thought someone might just
happen to have a simple one already made up to go with my simple
'test' table I've set up but if no one shows I'll just have to work a
little more on the Tutorial and see what I can come up with.
I have your book on my desk top right now, thanks.
Verne
On Fri, 09 Mar 2007 09:06:05 +0100, Bob Swart <b.swart (AT) chello (DOT) nl
wrote:
Hi Verne,
I'm looking for ways of using C++ and the VCL tools to make a very
simple Database Program for shall we say Telephone numbers, Addresses
and First Name, Initial and Lastname. There must be a simple way to
use VCL for this
See my free tutorial on VCL Database Development using C++(Builder) at
http://www.drbob42.com/examines/examin83.htm
Verne
Groetjes,
Bob Swart
I posted one for you in the Borland.public.attachments newsgroup
DC |
|
|
| Back to top |
|
 |
DreamChaser Guest
|
Posted: Sun Mar 11, 2007 8:11 am Post subject: Re: Simple database program using ADO |
|
|
Verne H. Bohlender wrote:
| Quote: | On Fri, 09 Mar 2007 20:02:31 -0600, DreamChaser <NO-Spam@No-Span.net
wrote:
I'm so green at this as I've normally struggled until I found or
forgot about it. Just how to find this work of yours, please.
Verne
I posted one for you in the Borland.public.attachments newsgroup
DC
in the borland.public.attachments newsgroup from 02MAR07. Look for |
"Using ADO in BCB", the attachment is everything in a sub directory for
a project to read/write etc an Access database (including an mdb file)
that I put together using BCB5. I believe you might need the Borland
Database Engine. If you are using a different version, you should start
a new project, remove the Form1 and then add the form in my project.
This project using a TDatabase to connect to the mdb. A TTable to access
the data. A TDataSource to connect to data to a TDataGrid for display
and editing. This app is VERY basic, but it is functional.
Not sure that I can give any more help.
DC |
|
| Back to top |
|
 |
Verne H. Bohlender Guest
|
Posted: Wed Mar 14, 2007 1:38 am Post subject: Re: Simple database program using ADO |
|
|
Thanks for the Zip of the .bpr file and info. I've learned something
new in two ways today.
1. How to find attachments for Borland
and
2. After a bit more work, possibly tonight I'll try to get the little
program to work so I can understand it.
Thanks again.
Verne |
|
| Back to top |
|
 |
DreamChaser Guest
|
Posted: Wed Mar 14, 2007 11:43 pm Post subject: Re: Simple database program using ADO |
|
|
Verne H. Bohlender wrote:
| Quote: | Thanks for the Zip of the .bpr file and info. I've learned something
new in two ways today.
1. How to find attachments for Borland
and
2. After a bit more work, possibly tonight I'll try to get the little
program to work so I can understand it.
Thanks again.
Verne
Good Luck to you! |
DC |
|
| Back to top |
|
 |
Verne H. Bohlender Guest
|
Posted: Tue Mar 20, 2007 7:27 pm Post subject: Re: Simple database program using ADO |
|
|
No dice. It just wouldn't let me load the .bpr file or what ever into
the work I was trying to do. So I'm back where I started. Guess
I'llhave to go back to either Visual Basic or their new 2005 to see if
I can learn. Trouble I found so far is that most of these are not
good if you happen to back to older Windows and with the way Mickey
Mouse is screwing up things we may just have to. Wonder if they'll
work under Linux too? The Biggies lied to us so much about XP and now
this Lista Vista thing is one I sure don't want and what I've seen so
far confirms it as they've torn appart all that we new or had learned
up until now.
On Wed, 14 Mar 2007 13:43:55 -0500, DreamChaser <NO-Spam@No-Span.net>
wrote:
| Quote: | Verne H. Bohlender wrote:
Thanks for the Zip of the .bpr file and info. I've learned something
new in two ways today.
1. How to find attachments for Borland
and
2. After a bit more work, possibly tonight I'll try to get the little
program to work so I can understand it.
Thanks again.
Verne
Good Luck to you!
DC |
|
|
| Back to top |
|
 |
Vladimir Stefanovic Guest
|
Posted: Tue Mar 20, 2007 10:23 pm Post subject: Re: Simple database program using ADO |
|
|
| Quote: | No dice. It just wouldn't let me load the .bpr file or what ever into
the work I was trying to do.
|
BPR file is not necessary to start the example. You mut have also
Unit1.cpp, Unit1.h, ...
I want to say that the attachment is incomplete.
--
Best Regards,
Vladimir Stefanovic |
|
| Back to top |
|
 |
DreamChaser Guest
|
Posted: Wed Mar 21, 2007 6:00 am Post subject: Re: Simple database program using ADO |
|
|
Vladimir Stefanovic wrote:
| Quote: | No dice. It just wouldn't let me load the .bpr file or what ever into
the work I was trying to do.
BPR file is not necessary to start the example. You mut have also
Unit1.cpp, Unit1.h, ...
I want to say that the attachment is incomplete.
OOPS  |
I just looked at the Zip file. You're right only the bpr. Check the
Attachments newsgroup. I will post the FULL project after I send this.
DC |
|
| Back to top |
|
 |
Verne H. Bohlender Guest
|
Posted: Sun Mar 25, 2007 6:54 am Post subject: Re: Simple database program using ADO |
|
|
I just tried the latest items you suggested and it worked up to a
point but seems it wants a name and password which I've not run across
before and the order of doing things seems to be mixed for when I want
to set the property to 'true' it simply will not let me. The
attachment if it shows will perhaps tell the story I hope.
Verne
On Tue, 20 Mar 2007 20:00:00 -0500, DreamChaser <NO-Spam@No-Span.net>
wrote:
| Quote: | Vladimir Stefanovic wrote:
No dice. It just wouldn't let me load the .bpr file or what ever into
the work I was trying to do.
BPR file is not necessary to start the example. You mut have also
Unit1.cpp, Unit1.h, ...
I want to say that the attachment is incomplete.
OOPS :(
I just looked at the Zip file. You're right only the bpr. Check the
Attachments newsgroup. I will post the FULL project after I send this.
DC |
|
|
| Back to top |
|
 |
DreamChaser Guest
|
Posted: Wed Mar 28, 2007 8:10 am Post subject: Re: Simple database program using ADO |
|
|
Verne H. Bohlender wrote:
| Quote: | I just tried the latest items you suggested and it worked up to a
point but seems it wants a name and password which I've not run across
before and the order of doing things seems to be mixed for when I want
to set the property to 'true' it simply will not let me. The
attachment if it shows will perhaps tell the story I hope.
ADOConnection->LoginPrompt = false; |
|
|
| Back to top |
|
 |
Verne H. Bohlender Guest
|
Posted: Wed Apr 04, 2007 5:44 am Post subject: Re: Simple database program using ADO |
|
|
Thanks for this one which actually works to a point but of no use what
so ever as yet. However I can at least look at it and just maybe
figure what's cooking. I'd hoped we could use the Text boxes or
labels for such as with VB but of course that's asking a bit much I
guess. Thanks for the effort so far and I'll post my progress if I
get farther on with same.
Verne
On Tue, 27 Mar 2007 22:44:34 -0500, DreamChaser <NO-Spam@No-Span.net>
wrote:
| Quote: | Verne H. Bohlender wrote:
I just tried the latest items you suggested and it worked up to a
point but seems it wants a name and password which I've not run across
before and the order of doing things seems to be mixed for when I want
to set the property to 'true' it simply will not let me. The
attachment if it shows will perhaps tell the story I hope.
ADOConnection->LoginPrompt = false; |
|
|
| Back to top |
|
 |
DreamChaser Guest
|
Posted: Thu Apr 19, 2007 8:10 am Post subject: Re: Simple database program using ADO |
|
|
Instead of using the DBGrid, look at the other components on the same
tab. The standard BCB controls do not attach to a db like VB ones do.
BCB uses the DBText, DBLabel, etc
jk
Verne H. Bohlender wrote:
| Quote: | Thanks for this one which actually works to a point but of no use what
so ever as yet. However I can at least look at it and just maybe
figure what's cooking. I'd hoped we could use the Text boxes or
labels for such as with VB but of course that's asking a bit much I
guess. Thanks for the effort so far and I'll post my progress if I
get farther on with same.
Verne
On Tue, 27 Mar 2007 22:44:34 -0500, DreamChaser <NO-Spam@No-Span.net
wrote: |
|
|
| 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
|
|