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 

paradox AppendRecord

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.databases
View previous topic :: View next topic  
Author Message
Harald Hahn
Guest





PostPosted: Wed Jan 28, 2004 10:54 am    Post subject: paradox AppendRecord Reply with quote



for writing a whole record I use:

table_wr.AppendRecord([RecAry[0],RecAry[1],RecAry[2]]);

Is there any shorter way to do that?

table_wr.AppendRecord(RecAry)

results in an compiler-error
Back to top
Dan
Guest





PostPosted: Wed Jan 28, 2004 4:47 pm    Post subject: Re: paradox AppendRecord Reply with quote



On 28 Jan 2004 02:54:33 -0800, [email]H.Hahn (AT) gsi (DOT) de[/email] (Harald Hahn) wrote:

Quote:
for writing a whole record I use:

table_wr.AppendRecord([RecAry[0],RecAry[1],RecAry[2]]);

Is there any shorter way to do that?

Nothing I've heard of. Do you need a shorter way?


Dan

Quote:
table_wr.AppendRecord(RecAry)

results in an compiler-error


Back to top
Harald Hahn
Guest





PostPosted: Thu Jan 29, 2004 7:53 am    Post subject: Re: paradox AppendRecord Reply with quote



Dan <Doculus at CMDCsystems dot com> wrote

Quote:
On 28 Jan 2004 02:54:33 -0800, [email]H.Hahn (AT) gsi (DOT) de[/email] (Harald Hahn) wrote:

for writing a whole record I use:

table_wr.AppendRecord([RecAry[0],RecAry[1],RecAry[2]]);

Is there any shorter way to do that?

Nothing I've heard of. Do you need a shorter way?

Dan

table_wr.AppendRecord(RecAry)

results in an compiler-error
Appending a couple of fields this way is ...

Perhaps I should use a for-loop together with fields[i].value
With paradox I only would have to write copyfromarray(RecAry);
Harald

Back to top
David Gray
Guest





PostPosted: Sun Apr 11, 2004 3:21 am    Post subject: Re: paradox AppendRecord Reply with quote

Harald Hahn wrote:
Quote:


for writing a whole record I use:

table_wr.AppendRecord([RecAry[0],RecAry[1],RecAry[2]]);


Appending a couple of fields this way is ...
Perhaps I should use a for-loop together with fields[i].value
With paradox I only would have to write copyfromarray(RecAry);
Harald
The above is the quickest way but not necesarily the safest. For

example, the code will not work correctly if the table structure
changes (add or delete a field). So you will be trading speed of
initial coding for slowness when maintaining the code.

Just an observation.


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.databases 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.