while running the following code i got error of " End of Statements expected" targets me.. what changes should me made to correct an error.

'UPGRADE_WARNING: Couldn't resolve default property of object picScope.Line. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'

        picScope.line((step_Renamed * xScale), preData) - ((step_Renamed + 1) * xScale, Data)

Check your parenthesis. The minus sign is outside of the line function.