     
        The Programs handle a list of names and Phone numbers.
        It is posible to get the phone number of some one by his (her) name
        or part of the name.
     
        I suggest that U'll have directory with the name PHONE
        that Will contain 9 Objects.
                         ***
        Here they are :
                PNFND PNEXT PNADD PNGET LSTR NAMES PNUMS LNAME LNUM
               *************************
     
        The first 4 are programs the other are
                NAMES is list of names.
                PNUMS is list of numbers (can be also of kind "23-6AB").
                LNAME is last name that we were looking for.
                LNUM  is the last place in the list we found the name.
     
        Here Are the programs :
     
     
0. ****** New Function
        PNFND
        << 1 'LUNUM' STO PNGET >>
     
        EXAMPLE
        "ER"            ! It is posible to type only the ER then Press the
        PNFND           ! PNFND on the menu.
                        It will find the name EREZ and show the name and the
                        Phone number.
     
     
1.  ******      Change the DORP DORP DORP  to DROP DROP
                in This version the user doesn't use the PNGET
                directly but he (she) use through PNFND or PNEXT .
     
        PNGET
        << ->STR DUP 1 1 SUB "'" ==             ! Check if the object is name
            IF                                  ! Make it string
            THEN DUP 2 SWAP SIZE 1 - SUB
            END
            IFERR NAMES SWAP LSTR DUP NAMES SWAP GET SWAP PNUMS SWAP GET
            SWAP 1 DISP "" 3 DISP 2 DISP
            THEN DROP DROP "Name NOT found" 1 DISP 55 .1 BEEP
            END
        >>
     
2.  ******   No changes
        PNEXT
        <<
            IF LNUM 1 <>
            THEN LNAME PNGET
            ELSE "No more entries" 1 DISP
            END
        >>
     
        Example
     
        PNEXT           ! After searching for name (of part of it) We can
                        ! search the next one
     
3.  ******   No changes
        PNADD           ! Add new name .
        << -> name num
            << NAMES name + 'NAMES' STO PNUMS num + 'PNUMS' STO
            >>
        >>
     
        Example
     
        "Cat"
        "01-212-345678"
        PNADD
     
        OR
     
        "Cat"
        345678
        PADD
     
4.  ******  This function REPLACE the old one
        LSTR
        << LNUM -> lis str x
            << str 'LNAME' STO
                WHILE lis x GET str POS 0 <=
                REPEAT x 1 + 'x' STO
                END
                IF x lis SIZE <=
                THEN x 1
                  IF x lis SIZE <
                  THEN x +
                  END 'LNUM' STO
                ELSE 1 'LNUM' STO 0
                END
            >>
        >>
     
        The User Don't use this program. It returns the number of the element
        that contains the str
     
     
     
        To install the programs to run U should Enter them then
     
        { } 'NAMES' STO
        { } 'PNUMS' STO
        ""  'LNAME' STO
        1   'LNUM'  STO
       ****
     
        Then U can add names and search for them
     
        Any programs that help me to make the HP-28 a small Office manger
        will be welcome
     
        I'll be happy to get comments and/or improvements.
     
     
**********************************************************************
*   Strauss Erez.      Erez@Taurus    OR    Erez@Math.Tau.Ac.IL      *
*                                                                    *
*   Snail-mail : Strauss Erez, Mishmeret 45, Tel-Aviv 69694, Israel  *
*   Home phone : ... 972 3 424481                                    *
**********************************************************************
*   Make love Not War                                                *
**********************************************************************
