• Subject: Re: triggered file list problem
  • From: dhandy@xxxxxxxxxxx (Douglas Handy)
  • Date: Fri, 29 Oct 1999 10:38:24 -0400

Nelson,

>This also creates the "gotcha" that when you duplicate a file into a test
>library, for example, it also duplicates the hard-coded qualified trigger
>call.  Then running test data through it in your test library fires your
>production trigger.  Be careful out there.

And if you use CPYF ... CRTFILE(*YES) it won't even duplicate the
trigger events at all (although CRTDUPOBJ will).

Being careful is always good advice.  Having the trigger program from
the production library being called is not necessarily a problem,
depending on how the trigger program is coded.  

But that is partly why I said you could/should examine the library
name passed in the trigger buffer if you are accessing other objects.

Triggers are a wonderful addition to our arsenal of methods.

Doug
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact [javascript protected email address].