----------------------------------------------------------------------------- Purpose: returns the name contained in the active tab Input : a text buffer to contain the output -----------------------------------------------------------------------------