ndle );
  }  

  /* Create the UI to display the document by copying the template resource */
  theTableUI = UserCreateDialog( @TVDialog );

  /* Tell the ViewerDialog about the heapspace we reserved.  The dialog will 
     free it when closed. */
  @call theTableUI::MSG_VD_SET_HEAPSPACE_TOKEN( moreSpace );

  @call theTableUI::MSG_VD_SET_VIEWER_PARAMS( vp );

  /* Are we restoring from state or just opening a document? */
  if (vp-&gt;VP_state == FALSE ) {

    /* We're opening a document.  Is it new?  */
