LOCAL llRetVal SELECT orders llRetVal = tsBaseForm::DataChanged() IF !llRetVal *-- Check if any line items have changed llRetVal = (GETNEXTMODIFIED(0, "order_line_items") <> 0) ENDIF RETURN llRetVal