\HeaderA{setActiveMVC}{Sets the active MVC object}{setActiveMVC}
\keyword{data}{setActiveMVC}
\begin{Description}\relax
setActiveMVC sets the active MVC object.  setActiveMVC is a command line
function that performs the same functionality as the Set Active MVC menu
item under the Edit menu on the control window.  setActiveMVC is meant to be
called by users that are not using the GUI.  Only one MVC object can be
active at a time.  All of the control window menus and command line
functions will refer to operations that are performed on this active MVC
object.
\end{Description}
\begin{Usage}
\begin{verbatim}
setActiveMVC(aMVC)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{aMVC}] the name of the MVC that you want to be the active MVC
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Elizabeth Whalen
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{loadData}{loadData}},
\code{\LinkA{getActiveMVC}{getActiveMVC}},
\code{\LinkA{getModelNames}{getModelNames}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
  if (interactive())
  {
    loadData("USArrests")
    loadData("USJudgeRatings")
    getActiveMVC()

    # now choose USJudgeRatings as the active MVC
    setActiveMVC("USJudgeRatings")
    getActiveMVC()
  }
\end{ExampleCode}
\end{Examples}

