C6 Legacy procedure broken - Delete Browse on a Sheet

I have a very complex procedure, written in C6 legacy. It has about 8 separate browse templates on one window.

One of the browses is on a tab and I want to delete it from the procedure but when I do the entire Sheet is deleted with it!

I have moved the browse list off the tab and onto the window, but deleting it still deletes the Sheet. So I suspect the procedure is broken?

Does anyone have any suggestions as to the cause of the problem and a possible fix?

are the controls somehow associated with a control template, e.g. a similar SEQ in the window format?

Thanks Jeff, I’ve got a feeling something like that is going on. I’m finding it difficult to keep track of which browse is associated with which template!

I’ve actually made some progress though. I deleted the browse and the sheet also disappeared then I exported the procedure to a TXA, deleted all the ADDITIONs that weren’t browses and re-imported and the sheet is back!

Of course it doesn’t compile, there are a few missing template equates!

You can try deleting it in the Window source code using “Window… Editor” by deleting the LIST.

I would first delete any Control templates hanging off the Browse like Update Buttons using the normal window editor. If that failed I would delete those first in the Window… Editor.

If you first Selective Export a TXA for that one procedure you’ll have a way to restore it.

Thanks Carl, I wasn’t sure that would work? I’ll give it a try.

The delete button is also disabled on the Extensions page, I’m never sure when that gets enabled?

I’m now waiting for feedback from the original developer.