 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Dwayne Guest
|
Posted: Thu Feb 19, 2004 4:41 pm Post subject: Re: newbie on database |
|
|
Hello "M0L0Ch"
M0L0Ch>>I have to design a database application, anyone knows a good
tutorial/link/doc about ways of planning and designing a good database
application? I've found nothing useful searching the net..general database
programming tutorials are also appreciated..many thanks in advance!!<<
This depends upon your Database application. What is your
Application supposed to do? What kind of data? What variables will the
Database hold?.
Make a list of all the data that will be stored in the Database.
Example:
Name,
Address
City
State
Zipcode
SSN
Birthday
etc.
Find out how long each of these variables will be (or guess on the
Maximium length).
Store your names and stuff that has numbers AND letters in a
alphanumeric. And store data that has only numbers in either numeric
fields, boolean fields, or whichever format fits the data the best.
Dwayne
|
|
| Back to top |
|
 |
M0L0Ch Guest
|
Posted: Thu Feb 19, 2004 6:22 pm Post subject: newbie on database |
|
|
hello all,
I have to design a database application, anyone knows a good
tutorial/link/doc about ways of planning and designing a good database
application? I've found nothing useful searching the net..general database
programming tutorials are also appreciated..many thanks in advance!!
|
|
| Back to top |
|
 |
Dwayne Guest
|
Posted: Fri Feb 20, 2004 12:32 am Post subject: Re: newbie on database |
|
|
Hello "M0L0Ch"
when I start the "helper" form to add values I already have dbEdits filled
with values of the current line in the grid, and if I change them to add
values,I have a new line ok but that previous row also change! what I've to
do as to "disconnect"
Try Adding a DBNavigator to your form. connect the DBNav source to
the file you are adding and editing. Then you can add, subtract, go to
first and last records etc.
Dwayne
|
|
| Back to top |
|
 |
Jayme Jeffman Filho Guest
|
|
| Back to top |
|
 |
M0L0Ch Guest
|
Posted: Fri Feb 20, 2004 10:16 pm Post subject: Re: newbie on database |
|
|
thanks to all I've already started, but I'm facing other problems.. I'm
using interbase, and the user should fill a DBGrid with values..to help
this, I've done a little form with many DBEdit, one for all fields in the
grid so the user inserts values in the dbedits and all is added to the
grid..the same if the user wants to modify a particular row in the grid. all
is ok as making the user modify values, but not for entering them,because
when I start the "helper" form to add values I already have dbEdits filled
with values of the current line in the grid, and if I change them to add
values,I have a new line ok but that previous row also change! what I've to
do as to "disconnect" DBedits from the grid if I want to add values?
I also need to check if some values are added twice, I've to check each one
programmatically or there is a quickier way to do this with some database
feature?
another basic question: I've seen that I can add lines or values by using
the dbGrids's methods and also using the table's methods (IBTable) what is
better??
as I said I'm using interbase, I'm creating my interbase tables using
database desktop of borland..I've seen that I cannot change the "header
fields" (the fixed records on top) once I've made the table unless I make a
new one..is there a way?and is there a way to use spaces and special
charachters like "%" and others?
hope you understand, sorry if I've posted lots of questions and for my
strange/bad english!
many thanks in advance to all!!
|
|
| Back to top |
|
 |
M0L0Ch Guest
|
Posted: Fri Feb 20, 2004 11:38 pm Post subject: Re: newbie on database |
|
|
thank for your tip! but.. isn't there another way? like simply letting me
put values as if dbEdit were a standard edit?
"Dwayne" <myfrienddr (AT) yahoo (DOT) com> wrote
| Quote: | Hello "M0L0Ch"
when I start the "helper" form to add values I already have dbEdits filled
with values of the current line in the grid, and if I change them to add
values,I have a new line ok but that previous row also change! what I've
to
do as to "disconnect"
Try Adding a DBNavigator to your form. connect the DBNav source
to
the file you are adding and editing. Then you can add, subtract, go to
first and last records etc.
Dwayne
|
|
|
| Back to top |
|
 |
Dwayne Guest
|
Posted: Sun Feb 22, 2004 5:05 pm Post subject: Re: newbie on database |
|
|
"M0L0Ch" <noemail (AT) nospam (DOT) com> wrote
thank for your tip! but.. isn't there another way? like simply letting me
put values as if dbEdit were a standard edit?<<
You can do exactly that. Use a Edit ASCII field to input your data,
and when you press another button, it will automatically add it to your
database. and/or update your database. It is a little more cumbersome.
You can put on your DBNavigator (in the Event tab) something like
Before Action call AppendRecord ,save all of your Edit fields to the proper
DBFields, then call a Post() command.
Or you can Make a little "Button, put a "Add Record" on it and do
it that way. There are many ways how to do it.
But! if you click on the "+" button of the navigator, all of this
is basically done for you....New record spot is made, the DBEdits are clear
and read for you to enter data, and when you are done, you hit the checkmark
and the record is saved...Without re-writing over other data in the DBfile.
Dwayne
|
|
| Back to top |
|
 |
Dwayne Guest
|
Posted: Sun Feb 22, 2004 5:27 pm Post subject: Re: newbie on database |
|
|
thanks for your help, actually I'm using an insert() before showing the
form, so data-aware edits can modify the newly created line..
I have other basic questions in the interbaseexpress newsgroup..any help
would be very appreciated!!
thanks in advance!
Insert() will work just fine too. I prefer RecordAppend(), but
if Insert words well with you, and doesn't slow you down... great! use it.
Dwayne
|
|
| Back to top |
|
 |
M0L0Ch Guest
|
Posted: Mon Feb 23, 2004 3:13 pm Post subject: Re: newbie on database |
|
|
thanks for your help, actually I'm using an insert() before showing the
form, so data-aware edits can modify the newly created line..
I have other basic questions in the interbaseexpress newsgroup..any help
would be very appreciated!!
thanks in advance!
"Dwayne" <myfrienddr (AT) yahoo (DOT) com> wrote
| Quote: | Hello M0l0Ch,
"M0L0Ch" <noemail (AT) nospam (DOT) com> wrote in message
news:40369a91 (AT) newsgroups (DOT) borland.com...
thank for your tip! but.. isn't there another way? like simply letting me
put values as if dbEdit were a standard edit?
You can do exactly that. Use a Edit ASCII field to input your
data,
and when you press another button, it will automatically add it to your
database. and/or update your database. It is a little more cumbersome.
|
|
|
| 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
|
|