#1  
Old 13th March 2005, 08:38 AM
Robert Meek
 
Posts: n/a
Default Re: V2 and referential integrity

I'll tell you why I settled on the convention I showed. I have to set
all my other components Active = True, and then to False in my datamodule's
OnDestroy, so for me it's just less confusing to treat tables the same
rather than switch gears just to write shorter code. I almost always make
use of begin..end..Else..begin..end; statements for all my code even when I
could write it if..then..else as well because then my code is consistent
throughout. There shouldn't be any difference in the compiled code so I
just do whatever is easier for me to read without having to think! <g>

--
from Robert Meek dba "Tangentals Design"
Personal e-mail: rmeek1@comcast.net

-------------------------------------------------
visit us on the World Wide Web and pick up
your free copy of "The Keep" at:

http://www.TangentalsDesign.com

E-mail us at one of the following:

information@tangentalsdesign.com
feedback@tangentalsdesign.com
support@tangentalsdesign.com
-------------------------------------------------

"Anders Gustavsson" <s.anders.gustavsson@telia.com> wrote in message
news:4232fea9$1@wic040d....
> As far as I understand what you say, everything seems logical. I think
> you can go anyway around - EM is built in Delphi, so what they can do
> internally you should be able to do in your own code. You can easily
> create the tables in EM and then let your table components hold field
> and indexdefs and use createtable. How you go about RI in this case is
> beyond my experience but it should be possible.
>
> Just to simplify things, your last example could easily be done this
> way:
>
> if not DKUsersTable.Exists then
> DKUsersTable.CreateTable;
> DKUsersTable.Open;



  #2  
Old 13th March 2005, 09:14 AM
Anders Gustavsson
 
Posts: n/a
Default Re: V2 and referential integrity

Sure, my main point really was that you can move the Active := True
outside the if-clause, it will happen anyway ;-)

/Anders


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is referential integrity with no actions ok? Tim Borman nexusdb.public.discussions 2 6th October 2006 05:16 PM
Automate Referential Integrity Henry - AR nexusdb.public.discussions 4 15th October 2005 01:42 PM
referential integrity "bonus" package Stéphane Thiers nexusdb.public.discussions 1 24th October 2003 07:09 PM
Referential Integrity Item in NX version 1.01 fix list John Turner nexusdb.public.support 6 10th October 2003 08:12 AM
Referential integrity! Atmapuri nexusdb.public.support 6 30th September 2003 08:45 AM


All times are GMT +11. The time now is 01:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.