Skip to Content
0
Former Member
Jun 24, 2010 at 04:36 PM

Crystal Code error

24 Views

I have the following code in a Formula Field

WhilePrintingRecords;

Shared numberVar counter;

//increments the loop so that all parameter entries can be displayed

Shared stringVar CC_display;

select HasValue({?PF_EqClassCode})

case true :

CC_display := "Class Codes: " + Chr(10);

for counter := 1 to Count({?PF_EqClassCode}) do

(

CC_display := CC_display + ToText({?PF_EqClassCode}[counter],0,"") + " | ";

)

case false :

CC_display := "Class Codes: All";

CC_display;

When I test it the last three lines are highlighted and I get the message:

"The remaining text does not appear to be part of the formula."

I cannot figure out what I am doing wrong.

Thanks