I have an application written in Delphi that uses dBase IV tables. The data
is entered into the detail table using a dbgrid. With the master-detail
settings made (MasterSource and MasterFields in the detail table pointing to
the master table's datasource, etc), creating a new record in the grid will
propagate through the key field from the master table. Is this reliable? And
as someone else said, cascaded updates/deletes?

Cascaded updates work well when Referential Integrity is set on Paradox tables.

I had a line of code in the OnNewRecord event of the detail table to put in
the key value but commenting it out means this appears to happen
automatically.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Scott Cree
> Sent: Wednesday, 12 May 1999 14:46
> To: Multiple recipients of list database
> Subject: RE: [DUG-DB]: Simple database Q (Paradox/dBase)
>
>
> I don't think it will propagate the linked fields. I write code in the
> BeforePost event of the detail table, to put the key values in if they
> are not already there. That seems to work alright, though it's not quite
> as good as the way Access does it.
>
> __________________________
> Scott Cree
> Knowlysis Limited
>
> Phone:        +649-358-0017
> Fax:  +649-358-3534
> E-Mail:       [EMAIL PROTECTED]
>
>
>
> -----Original Message-----
> From: Patrick Dunford [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 12 May 1999 13:27
> To: Multiple recipients of list database
> Subject: [DUG-DB]: Simple database Q (Paradox/dBase)
>
>
>
> If I have two tables set up in a master-detail relationship using the
> properties in the TTables and the detail has a foreign key from the
> primary
> table, if I add a new record to the detail table, will the key value
> from
> the master table propagate automatically to the linked field in my new
> record in the detail table?
>
> I remember that this works in Access, but I don't have any information
> on
> how the BDE does it for Paradox/dBase tables.
>
> TIA
>
> ============================================
> Patrick Dunford, Christchurch, NZ
> http://patrick.dunford.com/
>
> ------------------------------------------------------------------------
> ---
>   New Zealand Delphi Users group - Database List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> ------------------------------------------------------------------
> ---------
>   New Zealand Delphi Users group - Database List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>

---------------------------------------------------------------------------
  New Zealand Delphi Users group - Database List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

begin 600 WINMAIL.DAT
M>)\^(@(%`0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$(@ <`
M& ```$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`0V ! `"`````@`"``$$
MD 8`* $```$````,`````P``, (````+``\.``````(!_P\!````2P``````
M``"!*Q^DOJ,0&9UN`-T!#U0"`````&1A=&%B87-E0&1E;'!H:2YO<F<N;GH`
M4TU44 !D871A8F%S94!D96QP:&DN;W)G+FYZ```>``(P`0````4```!33510
M`````!X``S !````%P```&1A=&%B87-E0&1E;'!H:2YO<F<N;GH```,`%0P!
M`````P#^#P8````>``$P`0```!D````G9&%T86)A<V5 9&5L<&AI+F]R9RYN
M>B<``````@$+, $````<````4TU44#I$051!0D%314!$14Q02$DN3U)'+DY:
M``,``#D`````"P! .@$````"`?8/`0````0````````"Y#<!!( !`#$```!2
M13H@6T151RU$0ETZ("!3:6UP;&4@9&%T86)A<V4@42 H4&%R861O>"]D0F%S
M92D`- \!!8 #``X```#/!P4`# `1``8`- `#`#4!`2" `P`.````SP<%``P`
M$0`#`#0``P`R`0$)@ $`(0```$-#1D0X-3$V.$,P.$0S,3$Y134R,#!#,$1&
M,C(T-39$`"D'`0.0!@!@" ``% ````L`(P```````P`F```````+`"D`````
M``,`+@```````P`V``````! `#D``'&!/S6<O@$>`' ``0```#$```!213H@
M6T151RU$0ETZ("!3:6UP;&4@9&%T86)A<V4@42 H4&%R861O>"]D0F%S92D`
M`````@%Q``$````6`````;Z<-3]X%H7]S0B,$=.>4@# WR)%;0``'@`># $`
M```%````4TU44 `````>`!\,`0```!(```!T:6U =&AI;F-N>BYC;RYN>@``
M``,`!A!%(1>[`P`'$(0(```>``@0`0```&4```!)2$%614%.05!03$E#051)
M3TY74DE45$5.24Y$14Q02$E42$%455-%4T1"05-%259404),15-42$5$051!
M25-%3E1%4D5$24Y43U1(141%5$%)3%1!0DQ%55-)3D=!1$)'4DE$``````(!
M"1 !````N08``+4&``#/#P``3%I&=: :J:__``H!#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46$)P A@HF#^+21 G2:",)HQ5@A<;UA\^]LOE@%B`) ?
M8%;@R6_*?_W+AG??@,QP70_-GU/=XM__X^_D_].OXGG5#]8?UR_8-O_9/]I/
MVU_<;]U_WH_?G^"O_\YO4[CEK_:_]\_XW^9,Z&__Z7_JC^N?6'K_S^Z?[Z_P
MO[_QS_+?'T]&KA+R!?\@&@$"``G@`````P`0$ `````#`!$0`````$ `!S!@
M(7/4-)R^`4 `"#!@(7/4-)R^`1X`/0`!````!0```%)%.B ``````P`--/TW
$``"@V9R^
`
end

---------------------------------------------------------------------------
  New Zealand Delphi Users group - Database List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to