 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Eldar Guest
|
Posted: Thu Jan 15, 2004 5:41 pm Post subject: Convert Delphi5 to Delphi7: post problem |
|
|
Hi,
Maybe it is wrong group but I think my problem relates to the installation
(I posted this question in the borland.public.install.delphi group
(news:40048150 (AT) newsgroups (DOT) borland.com) but there have not been any ideas for
3 days. I hope Borland's gurus visit this group more often ).
I've converted my D5 project to D7. Everything is fine except one place: a
duplication of a contract.
Here is my routine for duplication:
TableMaster.Append;
TableLookup.FindKey;
Copy 95% of fields from TableLookup to TableMaster;
Create a form with visual objects (70% of fields);
User can modify the duplicated info or can just save a contract;
TableMaster.Post; (here is the problem: all fields which have a visual
object as a TDBMemo or TDBEdit lose the data if an user did not modified
it!!!)
So I have data only for modified fields or fields without visual object.
Under D5 the code was perfect.
Any idea?
Thanks.
|
|
| Back to top |
|
 |
Bill Todd (TeamB) Guest
|
Posted: Thu Jan 15, 2004 7:28 pm Post subject: Re: Convert Delphi5 to Delphi7: post problem |
|
|
On Thu, 15 Jan 2004 12:41:45 -0500, "Eldar" <eldar (AT) gtechna7 (DOT) com>
wrote:
Show us the code you use to copy the values from one table to the
other.
I assume you are assigning the values to the DataSet, not to the data
aware controls, is that true?
Are you using the dbExpress components?
What database are you using?
--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
|
|
| Back to top |
|
 |
Eldar Guest
|
Posted: Mon Jan 19, 2004 5:32 pm Post subject: Re: Convert Delphi5 to Delphi7: post problem |
|
|
Hi Bill,
| Quote: | Show us the code you use to copy the values from one table to the other.
Here is it: |
with TableTemp do
try
TableMaster.Append;
TableMasterCLNT.AsString := FieldByName('CLNT').AsString;
TableMasterCONTACT.AsString := FieldByName('CONTACT').AsString;
...
except
...
end;
I do TableMaster.Post only when a user pushes a button "Save";
| Quote: | I assume you are assigning the values to the DataSet, not to the data
aware controls, is that true?
Yes, how you see, I'm assigning the values to the DataSet. |
| Quote: | Are you using the dbExpress components?
No, I'm not. |
| Quote: | What database are you using?
I use ADS (Advantage Database Server) engine. |
I hope I've answered to all your questions.
Thanks.
|
|
| Back to top |
|
 |
Bill Todd (TeamB) Guest
|
Posted: Mon Jan 19, 2004 8:13 pm Post subject: Re: Convert Delphi5 to Delphi7: post problem |
|
|
On Mon, 19 Jan 2004 12:32:20 -0500, "Eldar" <eldar (AT) gtechna7 (DOT) com>
wrote:
| Quote: | Are you using the dbExpress components?
No, I'm not.
|
I won't ask why you posted in the dbExpress newsgroup. However, I
do have some other questions.
Which data access components are you using?
What database are you using?
Have you downloaded and installed all of the updates for Delphi 7?
--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
|
|
| 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
|
|