DC_EditControlLastFocus() and EDITPROTECT
Posted: Wed Feb 23, 2011 9:56 am
Roger,
I think there is an issue with your newly added function DC_EditControlLastFocus().
You get an error if you have a screen with some dc_gets and dc_pushbuttons and all gets on the screen are EDITPROTECTed and the button has DC_EditControlLastFocus() in the action clause. System does not recognize this situation and does not return the focus to the tab page itself (or any other available object if there is no tab page, just a DC_STATIC). Error code is BASE/2266 (receiver of message is not an object).
Please refer to my attached sample code for testing (just click on the button and close the action message).
I think there is an issue with your newly added function DC_EditControlLastFocus().
You get an error if you have a screen with some dc_gets and dc_pushbuttons and all gets on the screen are EDITPROTECTed and the button has DC_EditControlLastFocus() in the action clause. System does not recognize this situation and does not return the focus to the tab page itself (or any other available object if there is no tab page, just a DC_STATIC). Error code is BASE/2266 (receiver of message is not an object).
Please refer to my attached sample code for testing (just click on the button and close the action message).