Line Item Procedure

It depends on whether the Panorama 6 database is set to Spreadsheet mode or Procedure mode. Based on the code you submitted, this database was set to Procedure mode. In that case, the code will appear in the Code panel, not the Formula panel.

Since the problem occurs when you enter something into the CsOrd field, you need to look at the Code associated with that field.

In Pano 6 I had this code in CsPr & ExtPr Fields
ExtPrΩ=CsPrΩ * CsOrdΩ
Subtotal=Sum(ExtPrΩ)

Rereading this, what you are saying could not have worked correctly in Panorama 6. That code should have been in the CsPr and CsOrd fields, not in the ExtPr field.