What I would try is:
- Look at your window structure and find the buttons that are used for “Insert”, “Change”, and “Delete”.
- Take note of the Field equate labels, such as ?ChangeButton, or ?Change, or ?InsertButton, or whatever they are called.
- In the browse template, take note of the label of your Browse object. E.G. “BRW1” or whatever it is called. I will call it “YourBrowseObject” in the example below, but you use your actual object name.
- In situations where you want to disable either Insert, Change, or Delete:
YourBrowseObject.InsertControl = 0
YourBrowseObject.ChangeControl = 0
YourBrowseObject.DeleteControl = 0
- If you want to re-enable any of those features:
YourBrowseObject.InsertControl = ?YourInsertButton
YourBrowseObject.ChangeControl = ?YourChangeButton
YourBrowseObject.DeleteControl = ?YourDeleteButton
It’s kind of hokey, but that should do what you want.