ARSperl

 view release on metacpan or  search on metacpan

html/manual/ars_CreateCharMenu.html  view on Meta::CPAN

<HTML>
<HEAD>
<TITLE>ARSperl Programmer's Manual - ars_CreateCharMenu</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">

   <H2><CODE>ars_CreateCharMenu(ctrl, menuHash)</CODE></H2>

      This function creates a new menu. You must first
      populate the <CODE>menuHash</CODE> before calling this routine.

      <P>

      <DL>
          <DT><B>On success</B><DD>
              Returns 1
          <DT><B>On failure</B><DD>
              Returns 0
      </DL>

      <P>Example:

      <P><BLOCKQUOTE>
      <I> This example copies an existing menu to a new 
          active link. I.e. it simply re-saves the menu under
          a new name. </I></BLOCKQUOTE>

      <PRE>
      ($m = ars_GetCharMenu($c, "C-foobar")) ||
	    die $ars_errstr;
      $m->{name} = "Copy of ".$m->{name};
      ars_CreateCharMenu($c, $m) || die $ars_errstr;
      </PRE>

<B>Notes</B>: Hash keys <CODE>helpText, owner</CODE> and 
<CODE>changeDiary</CODE> are optional when calling this routine.
<P>
<I>This function was introduced in version 1.90 of ARSperl</I>
<P>

<A HREF="toc.html"><IMG ALT="&lt;--" SRC="arrow.gif" ALIGN=CENTER> Back to Table of Contents </A>
</BODY>
</HTML>



( run in 0.716 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )