Purpose
Delete the active tab

The active tab cannot be deleted without switching to another tab first.

Solution
Use an "Enter" command. For example, if the active tab is "Descriptions" and you want to switch to the "Units of measure" tab:

if Q[Page=Descriptions]
  Enter P[Units of measure]
  Stop
endif

del P[Descriptions]

Components
GuiXT