Skip to Content
0
Former Member
Jun 17, 2009 at 05:47 PM

Multiple Statements In Select/Case Causes An Error

182 Views

I'm getting an error with the below code. The error is . . . "The remaining text does not appear to be part of the formula." I can have multiple lines in a "Case" statement . . . right ? Any idea what I'm doing wrong ?

NumberVar Summary_Totals := 0;

StringVar Convert_Total_To_String : " ";

StringVar Summary_Line := " ";

StringVar Salesperson := " ";

Select {CommissionTable.Salesperson_Name}

Case "Joel Smith":

Summary_Totals := ({@Net_Commission} + {@Adjustment_Value}) + {@Non_Commissioned}

Salesperson = "Joel Smith"

Convert_Total_To_String := ToText(Summary_Totals)

Summary_Line := Salesperson & " - " & ToText(Convert_Total_To_String )