[Tcladdressbook-commits] Help TclAB_QuickStart.html,1.10,1.11
Status: Alpha
Brought to you by:
bdesgraupes
|
From: Bernard D. <bde...@us...> - 2004-08-01 17:56:48
|
Update of /cvsroot/tcladdressbook/Help In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1279/Help Modified Files: TclAB_QuickStart.html Log Message: Doc new command [addressbook label] Index: TclAB_QuickStart.html =================================================================== RCS file: /cvsroot/tcladdressbook/Help/TclAB_QuickStart.html,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- TclAB_QuickStart.html 1 Aug 2004 06:31:36 -0000 1.10 +++ TclAB_QuickStart.html 1 Aug 2004 17:56:39 -0000 1.11 @@ -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.1b4. All the Tcl instructions in the sections +version 1.1b5. 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, @@ -41,7 +41,8 @@ <UL><LI><A HREF="#M21">The [set] subcommand</A></UL> <UL><LI><A HREF="#M22">The [search] subcommand</A></UL> <UL><LI><A HREF="#M23">The [identifier] subcommand</A></UL> -<LI><A HREF="#M24">Using keyed lists</A> +<UL><LI><A HREF="#M24">The [label] subcommand</A></UL> +<LI><A HREF="#M25">Using keyed lists</A> </UL> First load the extension like this <PRE> @@ -350,8 +351,19 @@ instruction will return the index 1: <PRE> addressbook identifier index $theid Phone $ident2 +</PRE><P><H3><A NAME="M24"></A>The [label] subcommand</H3> +Let's find the label of the first phone number for a record: +<PRE> + set theid [addressbook getme -id] + addressbook label $theid Phone 0 +</PRE> +The returned string could be Home for instance. Let's change it to +"Personal": +<PRE> + addressbook label $theid Phone 0 Personal + addressbook save </PRE><P><A NAME="ukl"></A> -<H2><A NAME="M24"></A>Using keyed lists</H2> +<H2><A NAME="M25"></A>Using keyed lists</H2> Keyed lists can be easily manipulated using the <B>keylget</B> and <B>keylset</B> commands defined by the TclX extension. For instance, if a record has been stored in some variable <I>myrecord</I>, one can extract @@ -371,6 +383,6 @@ keylget grp GroupName clock format [keylget grp Modification] </PRE><P><HR> -<P> Last updated 2004-08-01 08:10:55<P> +<P> Last updated 2004-08-01 19:32:54<P> </BODY> </HTML> \ No newline at end of file |