 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Harald Hahn Guest
|
Posted: Wed Jan 28, 2004 10:54 am Post subject: paradox AppendRecord |
|
|
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
|
Posted: Wed Jan 28, 2004 4:47 pm Post subject: Re: paradox AppendRecord |
|
|
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
|
Posted: Thu Jan 29, 2004 7:53 am Post subject: Re: paradox AppendRecord |
|
|
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
|
Posted: Sun Apr 11, 2004 3:21 am Post subject: Re: paradox AppendRecord |
|
|
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 |
|
 |
|
|
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
|
|