I have a window that contains a browse that is populated by a table in MSSQL.
The window contains a button to Print a Report using the same table in MSSQL
The Report prints correctly, but when control is returned back to the Window I get a Access Violation error when the code executes ThisWindow.Reset. I am using the latest version of Clarion 10.
! End of “Control Event Handling”
! [Priority 8500]
I have tried things like FLUSH(BRW4.View) and BRW4.ResetFromView() but it still crashes.
Think you’ll find this may well be an issue with the use of decimal values in the report query procedure in the report. If you’re using decimals and particularly if using sum or other mathematical operators on the decimal returned value be sure to cast it as a decimal otherwise a gpf will result.