    if ( vp-&gt;VP_attr & VA_NEW_DOCUMENT ) {

      /* Initialize the new document -- we'll see this code later */

    }
    /* Call the code we wrote that opens and displays the document */
    if ( 0 == @call theTableUI::MSG_MVD_OPEN_DOCUMENT( &vp-&gt;VP_documentInfo )) {   
      /* If there was a problem, discard the UI. */
      @send theTableUI::MSG_VD_CLOSE(GeodeGetCodeProcessHandle(), VCS_CLOSED );
      return( NullHandle );
    }
  }

  else {  /* We're restoring from state. */
      /* Call the