× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Database Trigger Programs
  • From: "R. Bruce Hoffman, Jr." <rbruceh@xxxxxxxxxxxxx>
  • Date: Thu, 10 Aug 2000 09:06:46 -0400

-----Original Message-----
From: William Washington III <w.washington@iols.net>
To: MIDRANGE-L@midrange.com <MIDRANGE-L@midrange.com>
Date: Wednesday, August 09, 2000 8:17 PM
Subject: Re: Database Trigger Programs


>Thanks Jim and Bruce...
>
>I used to just add 2.5 times the record length of the file to the end of
the
>first 96 bytes of the first parameter of the program, but I knew there had
>to be a way to precisely grab the before and after images of the record.
>
>Bruce, do I have to add 1 to account for the offset when evaluating the
>oldPoint and newPoint data structures?  I had to do so when using
>conventional data structures for the first parameter.  (This is my
>crash-course in pointer based data structures...)
>


No, not for pointers and based data structures, the offsets are zero based.
Since the first byte of the based structure is pointed to, you add zero to
get the first byte, etc...


===========================================================
R. Bruce Hoffman, Jr.
 -- IBM Certified Specialist - AS/400 Administrator
 -- IBM Certified Specialist - RPG IV Developer

"Those who would give up essential Liberty,
  to purchase a little temporary Safety,
  deserve neither Liberty nor Safety."

     - The Papers of Ben Franklin



+---
| 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
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2024 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 on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.