Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Section Visibility

Status
Not open for further replies.

sjdbmc

IS-IT--Management
Jan 30, 2004
14
GB
I have created a report to produce an invoice to customers.

A Subreport produces the Invoice Address.

Due to human error etc people have entered the customer name into the 1st line of the invoice address which results in the customer name appearing twice in the address.

I have come up with the following formula to remove duplicates.

stringVar array Line_1:= split({address.address_1},chr(10));
stringVar array Line_1B:= split({address.address_1}," ");
stringVar array Line_1c:= split({company.descr}," ");

line_1[1] = {company.descr} or
line_1b[1] = {company.descr} or
line_1b[1] = line_1c[1]

This has been placed in the 1st line of the address, format section and suppressed formula. (Report Header C)

The other lines appear in Report Header D to H.

This works fine on my machine from within CR8.5 and fine as an executable.

The problem arises when users run it from their own machine and get the following message:.

Error in Formula
<Section Visibility>
stringVar array Line_1:= split({address.address_1},chr(10));
A number,currency amount, boolean or string is expected here.

I'm assuming it's got something to do with the evaluation time of the subreport.

Why does this work fine on my machine and not on user machines?

What can I do to fix it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top