Using logfile/logtest wnen a user saves a record

Mike Schwartz mschw at athenet.net
Wed Oct 5 05:44:51 PDT 2011


      filePro 5.6.0 running on SCO Openserver 6.0.0.

 

     I would like to create a logfile/logtext entry when a user saves an
invoice record and the invoice total dollar amount has changed.

 

     Initially I wrote the test code below, but there are about 50 other
@wlf subroutines in this 1,000 lines of code (i.e. @wlf3, @wlf4, @wlfss,
@wlffa, etc.), so I would have to add some @SK code or a gosub into each of
those 50 @wlf subroutines.  

  

871  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -

@WLF*  │ If: 'logfile line will be written if user updates an invoice    │

       Then: 'that was posted in a previous month.
│

873  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -

       │ If: @SK="SAVE"
│

       Then: logtext "Test Line"
│

 

     I also tried this subroutine with @WUK*, but this line never executes:

 

871  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -

@WUK*  │ If: 'logfile line will be written if user updated a posted invoice
│

 

     Any other ideas about how to always get this logtext line to kick in
without writing 50 gosubs?

 

Thanks,

 

Mike Schwartz

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20111005/4e107590/attachment.html 


More information about the Filepro-list mailing list