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 

Strange behaviour - Changes in Table don't show up right awa

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop)
View previous topic :: View next topic  
Author Message
John MacDonald
Guest





PostPosted: Sun Oct 03, 2004 2:13 am    Post subject: Strange behaviour - Changes in Table don't show up right awa Reply with quote



Hello folks:

When I make changes in a Table, the changes don't show up in my report until
after I turn off the software and restart.

A little confused

JMAC out



Back to top
Vladimir Stefanovic
Guest





PostPosted: Sun Oct 03, 2004 8:08 am    Post subject: Re: Strange behaviour - Changes in Table don't show up right Reply with quote



Do you use ADO or BDE ?

In what control (TDBGrid, TDBEdit, ...) you cannot see
the changes?

Have you tried Refresh() of your control?

You have to provide more concrete datails about your
problem...


--


Best regards,
Vladimir Stefanovic

John MacDonald <mac1 (AT) ica (DOT) net> wrote

Quote:
Hello folks:

When I make changes in a Table, the changes don't show up in my
report until
after I turn off the software and restart.

A little confused

JMAC out






Back to top
John MacDonald
Guest





PostPosted: Mon Oct 04, 2004 5:24 am    Post subject: Re: Strange behaviour - Changes in Table don't show up right Reply with quote



Thanks for the reply Vladimir:

I am using the BDE,

I have a query linked to a table. When I change the table I have to shut
down the query and start it again before the changes in the table are
reflected.

Talk to you soon.

JMAC out


"Vladimir Stefanovic" <spam (AT) not (DOT) needed> wrote

Quote:
Do you use ADO or BDE ?

In what control (TDBGrid, TDBEdit, ...) you cannot see
the changes?

Have you tried Refresh() of your control?

You have to provide more concrete datails about your
problem...


--


Best regards,
Vladimir Stefanovic

John MacDonald <mac1 (AT) ica (DOT) net> wrote in message
news:415f5fbb (AT) newsgroups (DOT) borland.com...
Hello folks:

When I make changes in a Table, the changes don't show up in my
report until
after I turn off the software and restart.

A little confused

JMAC out








Back to top
Jayme Jeffman Filho
Guest





PostPosted: Mon Oct 04, 2004 12:40 pm    Post subject: Re: Strange behaviour - Changes in Table don't show up right Reply with quote

Hello John,

Remember that a TDataSet component hold it's data in memory so
whenever you need to show the up to date data in the database you
need to refresh the data by calling its Refresh (for TTable) or a
sequence of the Close and Open (for TQuery) methods.

Neither the components nor the database does it automatically for you.

HTH

Jayme.

"John MacDonald" <mac1 (AT) ica (DOT) net> escreveu na mensagem
news:415f5fbb (AT) newsgroups (DOT) borland.com...
Quote:
Hello folks:

When I make changes in a Table, the changes don't show up in my report
until
after I turn off the software and restart.

A little confused

JMAC out






Back to top
Don Locke
Guest





PostPosted: Mon Oct 04, 2004 9:04 pm    Post subject: Re: Strange behaviour - Changes in Table don't show up right Reply with quote

You may want to include the following lines:

Table->Post();
DbiSaveChanges(Table->Handle);
Table->Refresh();
DBGrid1->Refresh(); // if you are using a grid.

The second line saves the data to the hard drive. Otherwise, it's
possible that the data won't get saved to the hard drive.
HTH,
Don
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder 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.