[Tcladdressbook-commits] Help TclAB_QuickStart.html,1.8,1.9
Status: Alpha
Brought to you by:
bdesgraupes
|
From: Bernard D. <bde...@us...> - 2004-07-30 21:30:29
|
Update of /cvsroot/tcladdressbook/Help In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31476/Help Modified Files: TclAB_QuickStart.html Log Message: Doc and examples for the [identifier index] command Index: TclAB_QuickStart.html =================================================================== RCS file: /cvsroot/tcladdressbook/Help/TclAB_QuickStart.html,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- TclAB_QuickStart.html 30 Jul 2004 13:07:38 -0000 1.8 +++ TclAB_QuickStart.html 30 Jul 2004 21:30:11 -0000 1.9 @@ -9,7 +9,7 @@ <P> <A HREF="TclAB.html">Home Page</A> | <A HREF="http://sourceforge.net/projects/tcladdressbook"> Project Page at SourceForge</A><P><HR><BLOCKQUOTE><P><I> This file is a tutorial that demonstrates the [addressbook] command defined by the Tcladdressbook extension for Tcl. It documents -version 1.1b3. All the Tcl instructions in the sections +version 1.1b4. All the Tcl instructions in the sections below are very short one-line commands which you can try in any Tcl shell, like tclsh for instance. <P> For a detailed and complete description of the syntax of each subcommand, @@ -313,23 +313,35 @@ <PRE> set groupid [lindex [addressbook groups -ids] 0] set theid [lindex [addressbook persons -ids -ingroup $groupid] 0] -</PRE><P><P> Count the identifiers of the Phone property: +</PRE> +<P> Count the identifiers of the Phone property: <PRE> addressbook identifier count $theid Phone -</PRE><P><P> Get some identifiers (suppose here that there are at least two of them): +</PRE> +<P> Get some identifiers (suppose here that there are at least two of them): <PRE> set ident1 [addressbook identifier get $theid Phone 0] set ident2 [addressbook identifier get $theid Phone 1] -</PRE><P><P> Get the primary identifier (the one which is chosen by default if +</PRE> +<P> Get the primary identifier (the one which is chosen by default if none has been specified otherwise): <PRE> addressbook identifier primary $theid Phone -</PRE><P><P> Get the current distribution identifier: +</PRE> +<P> Get the current distribution identifier: <PRE> addressbook identifier set $groupid $theid Phone -</PRE><P><P> Set the distribution identifier to <I>ident2</I>: +</PRE> +<P> Set the distribution identifier to <I>ident2</I>: <PRE> addressbook identifier set $groupid $theid Phone $ident2 +</PRE> +<P> The reverse operation of the <B>addressbook identifier get</B> command +is the <B>addressbook identifier index</B> command which returns the +index corresponding to a given identifier. For instance, the following +instruction will return the index 1: +<PRE> + addressbook identifier index $theid Phone $ident2 </PRE><P><A NAME="ukl"></A> <H2><A NAME="M24"></A>Using keyed lists</H2> Keyed lists can be easily manipulated using the <B>keylget</B> and @@ -351,6 +363,6 @@ keylget grp GroupName clock format [keylget grp Modification] </PRE><P><HR> -<P> Last updated 2004-07-30 14:46:44<P> +<P> Last updated 2004-07-30 23:25:49<P> </BODY> </HTML> \ No newline at end of file |