<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
<MAN>
  <LANGUAGE>eng</LANGUAGE>
  <TITLE>add_demo</TITLE>
  <TYPE>Scilab Function</TYPE>
  <DATE>18-Sep-2003</DATE>
  <SHORT_DESCRIPTION name="add_demo"> Add an entry in the demos list</SHORT_DESCRIPTION>
  <CALLING_SEQUENCE>
    <CALLING_SEQUENCE_ITEM>add_demo(title,path)</CALLING_SEQUENCE_ITEM>
  </CALLING_SEQUENCE>
  <PARAM>
    <PARAM_INDENT>
      <PARAM_ITEM>
        <PARAM_NAME>title</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: a character string, the demo title</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>path</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: a character string, the path of the scilab script associated
	  with the demo</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
    </PARAM_INDENT>
  </PARAM>
  <DESCRIPTION>
    <P>
    This function adds a new entry in the demos list. The demo should be
    executed by a Scilab script file. If the given <VERB>title</VERB> already exists
    in the demo list associated with the same file nothing is done.
    The function checks if the file exist.</P>
  </DESCRIPTION>
  <EXAMPLE>
<![CDATA[
  //create a simple demo script
  path=TMPDIR+'/foo.sce';
  mputl('disp Hello',path)
  add_demo('My first demo',path)
  //the demo can now be run using the "Demos" menu.
  ]]>
  </EXAMPLE>
  <SEE_ALSO>
    <SEE_ALSO_ITEM>
      <LINK> add_help_chapter</LINK>
    </SEE_ALSO_ITEM>
  </SEE_ALSO>
  <AUTHOR>
    Serge Steer , INRIA
  </AUTHOR>
</MAN>
