This will switch tabpages if the pages are visible
SWITCH (.fSortMethod)
CASE 'Custom'
PROPERTY tcSort TABINDEX '1'
BREAK
CASE 'Standard'
PROPERTY tcSort tabindex '0'
BREAK
ENDSW
but is there a way to switch pages if they are turned invisible?

