Adding the code to the Startup method, tthe issue is solved. Thanks.
Can you explain what is happening when the code is executed?
if 0 isnt .rc = .Send('GetRecordControl')
What I understand is that rc is assigned the value given by Send method defined in a parent (Control) of ExpandController. The argument given to Send method is ‘GetRecordControl’. What does Send method return? I am unable to Inspect rc -it is giving an error. What are the valid arguments that can be supplied to Send? What happens when AddObserver and AddSetObserver methods of rc are called withset_summary?