FILEINFO should do it. IF FILEINFO(FilePointer,17) = 'INVWHS' THEN ......
Trevor. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Israel, John R. Sent: 06 August 2009 16:39 To: 'U2 Users List' Subject: [U2] Mass Disabling Triggers There are 5 arguments passed with a trigger: STATUS.FLAG DICT.FLAG File Pointer Key Record The File Pointer is a handle to the OPENED file, not the NAME of the file. How would I determine the name of the file that has the trigger assigned to it? Purpose: We have MANY triggers. Due to upgrade/conversion issues, we had to delete all the triggers, and will need to re-add them at a later date. This is a pain! We are considering having a single trigger for all these files that would be smart enough to dynamically call the "real" trigger logic (a 2nd subroutine that is locally cataloged). This would allow us to disable the single subroutine by simply adding a RETURN at the top of the code. Once we are ready to turn them back on, we would just remove the RETURN. Other thoughts? John Israel Sr. Programmer/Analyst Dayton Superior Corporation 721 Richard St. Dayton, OH 45342 937-866-0711 x44380 _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users -------------------------------------------------------- Epicor Software (UK) is a limited company registered in England & Wales. Registration Number: 2338274. Registered Office: Osborne Clarke OWA, One London Wall, London EC2Y 5EB This e-mail is for the use of the intended recipient(s) only. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not use, disclose or distribute this e-mail without the author's prior permission. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. Any views and/or opinions expressed in this e-mail are of the author only and do not represent the views of Epicor Software (UK) Limited or any other company within its group. This message has been scanned for malware by Websense. www.websense.com _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
