local SecondLeftColumnNumber with m.this.parent.Grid do case case empty(.Partition) && The grid is not split into panels SecondLeftColumnNumber = 0 case .Panel = 1 && the right panel is active SecondLeftColumnNumber = .LeftColumn otherwise && left panel is active .Panel = 1 && activate the right panel SecondLeftColumnNumber = .LeftColumn .Panel = 0 && and switch back to the left endcase endwith ? SecondLeftColumnNumber