Dreport & rreport

Jeff Harrison Jeff.Harrison at Epixweb.com
Thu Apr 29 11:09:59 PDT 2004


Richard Kreiss wrote:

> Pst_hed only need to run once.  This routine prints 15 
> address labels from the
> same record.
> Line 13 tests the counter and ends the program when it gets 
> to "0". Otherwise
> line 14 executes
> And the loop is repeated.
> 
> My problem is on the first time this system called program 
> runs, the lookup
> fails as the record is not found.
> If the same selection from the browse lookup is made again, 
> the record is found
> and the values posted.  Al succeeding records selected will 
> post correctly.  
> 
> If I run a report, printing the orders listed in the browse, 
> first, everything
> works fine. 
> 
> The above only happens in rreport; dreport runs correctly each time.
> 


Sorry, I missed your if statement because it came before the line number.
>          If: ct = "0"
>    13  Then: END

You may want to check out Bob Stockler's processing posting program... 

At any rate, since the initial lookup fails when it should not, I would
suspect the process that runs prior to this code - if it first creates the
header record, and then you do this process to update it, make sure that the
lookup is closed before you do your system call.

Good Luck.

Jeff Harrison
jeff.harrison at epixweb.com

Author of JHExport and JHImport - The fastest and easiest ways to generate
code for filepro exports and imports.  Demos available upon request.



More information about the Filepro-list mailing list