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 

Convert Delphi5 to Delphi7: post problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Eldar
Guest





PostPosted: Thu Jan 15, 2004 5:41 pm    Post subject: Convert Delphi5 to Delphi7: post problem Reply with quote



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 Smile ).

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





PostPosted: Thu Jan 15, 2004 7:28 pm    Post subject: Re: Convert Delphi5 to Delphi7: post problem Reply with quote



On Thu, 15 Jan 2004 12:41:45 -0500, "Eldar" <eldar (AT) gtechna7 (DOT) com>
wrote:

Quote:
Any idea

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





PostPosted: Mon Jan 19, 2004 5:32 pm    Post subject: Re: Convert Delphi5 to Delphi7: post problem Reply with quote



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





PostPosted: Mon Jan 19, 2004 8:13 pm    Post subject: Re: Convert Delphi5 to Delphi7: post problem Reply with quote

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. Smile 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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) 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.