Dreport & rreport

GCC Consulting gcc at optonline.net
Wed Apr 28 17:57:31 PDT 2004


Having a problem with the following code:

Native 5.0.11

   9  Then: po=@pw;st=@pm;ct="15";
   10  Then: 'debug on
   11  Then: GOSUB pst_hed
loop     If: ct ne "0"
   12  Then: PRINT;ct = ct -"1"
         If: ct = "0"
   13  Then: END
   14  Then: GOTO loop
pst_hed  If: 
   15  Then: sleep "600"
   16  Then: lookup head = ordhead  k=po   i=a -npx
         If: NOT head
   17  Then: RETURN
         If: head(30) = "Y"
   18  Then: up="UPS"
   19  Then: head(28)="Y";head(29)=@td;write head
   20  Then: sleep "600"
   21  Then: RETURN
   22  Then: ct(2,.0,g);po(6,.0,g);st(len(1),edit(1),g);up(3,allup,g)

This is a routine to print 15 address labels.  It is run using a system call.

Line 19 posts back to the order header that the address labels have been printed
and when.

I am using a select process with uses a - lookup to go directly to the stores
record.

Here is the problem, when run with rreport, the posting doesn't occur.  When run
with dreport, the posting happens as programmed.  The routine was tested with
and without the debugger.

>From the same program that prints these labels, I am printing barcode labels
from the associated order details using rreport and the posting works fine.  The
posting takes place at @once processing.

Any ideas of what or where to look?

Richard Kreiss
GCC Consulting 




More information about the Filepro-list mailing list