home *** CD-ROM | disk | FTP | other *** search
/ TestDrive Super Store 4.0 / TESTDRIVE_4.ISO / ascend / ascami1.smm < prev    next >
Encoding:
INI File  |  1992-10-29  |  27.5 KB  |  1,878 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     
  5. [files]
  6. [charset]
  7.     82
  8.     ANSI (Windows, IBM CP 1252)
  9. [revisions]
  10.     0
  11. [prn]
  12.     NEC Silentwriter LC890XL
  13. [port]
  14.     LPT2:
  15. [lang]
  16.     1
  17. [desc]
  18.     Ascend Find Name, uses DDE to get name from Ascend Address and Phone module
  19.     
  20.     
  21.     
  22.     
  23.     720372016
  24.     24
  25.     719679532
  26.     1104
  27.     7
  28.     0
  29.     0
  30.     0
  31.     0
  32.     
  33.     
  34.     
  35.     
  36.     
  37.     
  38.     0
  39. [fopts]
  40.     0
  41.     1
  42.     0
  43.     0
  44. [lnopts]
  45.     2
  46.     Body Text
  47.     1
  48. [docopts]
  49.     5
  50.     3
  51. [GramStyle]
  52.     
  53. [tag]
  54.     Body Text
  55.     2
  56.     [fnt]
  57.         TimesNewRomanPS
  58.         240
  59.         0
  60.         49152
  61.     [algn]
  62.         1
  63.         1
  64.         0
  65.         0
  66.         0
  67.     [spc]
  68.         33
  69.         273
  70.         1
  71.         0
  72.         0
  73.         1
  74.         100
  75.     [brk]
  76.         4
  77.     [line]
  78.         8
  79.         0
  80.         1
  81.         0
  82.         1
  83.         1
  84.         1
  85.         10
  86.         10
  87.         1
  88.     [spec]
  89.         0
  90.         0
  91.         
  92.         0
  93.         1
  94.         1
  95.         0
  96.         0
  97.         0
  98.         0
  99.     [nfmt]
  100.         280
  101.         1
  102.         2
  103.         .
  104.         ,
  105.         $
  106.     Body Text
  107.     0
  108.     0
  109. [tag]
  110.     Body Single
  111.     3
  112.     [fnt]
  113.         TimesNewRomanPS
  114.         240
  115.         0
  116.         49152
  117.     [algn]
  118.         1
  119.         1
  120.         0
  121.         0
  122.         0
  123.     [spc]
  124.         33
  125.         273
  126.         1
  127.         0
  128.         0
  129.         1
  130.         100
  131.     [brk]
  132.         4
  133.     [line]
  134.         8
  135.         0
  136.         1
  137.         0
  138.         1
  139.         1
  140.         1
  141.         10
  142.         10
  143.         1
  144.     [spec]
  145.         0
  146.         0
  147.         
  148.         0
  149.         1
  150.         1
  151.         0
  152.         0
  153.         0
  154.         0
  155.     [nfmt]
  156.         280
  157.         1
  158.         2
  159.         .
  160.         ,
  161.         $
  162.     Body Single
  163.     0
  164.     0
  165. [tag]
  166.     Bullet
  167.     4
  168.     [fnt]
  169.         TimesNewRomanPS
  170.         240
  171.         0
  172.         49152
  173.     [algn]
  174.         1
  175.         1
  176.         0
  177.         288
  178.         288
  179.     [spc]
  180.         33
  181.         273
  182.         1
  183.         0
  184.         0
  185.         1
  186.         100
  187.     [brk]
  188.         4
  189.     [line]
  190.         8
  191.         0
  192.         1
  193.         0
  194.         1
  195.         1
  196.         1
  197.         10
  198.         10
  199.         1
  200.     [spec]
  201.         0
  202.         0
  203.         <*0>
  204.         360
  205.         1
  206.         1
  207.         0
  208.         0
  209.         0
  210.         0
  211.     [nfmt]
  212.         272
  213.         1
  214.         2
  215.         .
  216.         ,
  217.         $
  218.     Bullet
  219.     0
  220.     0
  221. [tag]
  222.     Bullet 1
  223.     5
  224.     [fnt]
  225.         TimesNewRomanPS
  226.         240
  227.         0
  228.         49152
  229.     [algn]
  230.         1
  231.         1
  232.         288
  233.         288
  234.         288
  235.     [spc]
  236.         33
  237.         273
  238.         1
  239.         0
  240.         0
  241.         1
  242.         100
  243.     [brk]
  244.         4
  245.     [line]
  246.         8
  247.         0
  248.         1
  249.         0
  250.         1
  251.         1
  252.         1
  253.         10
  254.         10
  255.         1
  256.     [spec]
  257.         0
  258.         0
  259.         <*5>
  260.         0
  261.         1
  262.         1
  263.         0
  264.         0
  265.         0
  266.         0
  267.     [nfmt]
  268.         280
  269.         1
  270.         2
  271.         .
  272.         ,
  273.         $
  274.     Bullet 1
  275.     0
  276.     0
  277. [tag]
  278.     Number List
  279.     6
  280.     [fnt]
  281.         TimesNewRomanPS
  282.         240
  283.         0
  284.         49152
  285.     [algn]
  286.         1
  287.         1
  288.         360
  289.         360
  290.         360
  291.     [spc]
  292.         33
  293.         273
  294.         1
  295.         0
  296.         0
  297.         1
  298.         100
  299.     [brk]
  300.         4
  301.     [line]
  302.         8
  303.         0
  304.         1
  305.         0
  306.         1
  307.         1
  308.         1
  309.         10
  310.         10
  311.         1
  312.     [spec]
  313.         0
  314.         0
  315.         <*:>.
  316.         360
  317.         1
  318.         1
  319.         0
  320.         0
  321.         0
  322.         0
  323.     [nfmt]
  324.         272
  325.         1
  326.         2
  327.         .
  328.         ,
  329.         $
  330.     Number List
  331.     0
  332.     0
  333. [tag]
  334.     Subhead
  335.     7
  336.     [fnt]
  337.         TimesNewRomanPS
  338.         240
  339.         0
  340.         49155
  341.     [algn]
  342.         1
  343.         1
  344.         0
  345.         0
  346.         0
  347.     [spc]
  348.         33
  349.         273
  350.         1
  351.         72
  352.         72
  353.         1
  354.         100
  355.     [brk]
  356.         4
  357.     [line]
  358.         8
  359.         0
  360.         1
  361.         0
  362.         1
  363.         1
  364.         1
  365.         10
  366.         10
  367.         1
  368.     [spec]
  369.         0
  370.         2
  371.         
  372.         0
  373.         1
  374.         1
  375.         0
  376.         0
  377.         0
  378.         0
  379.     [nfmt]
  380.         272
  381.         1
  382.         2
  383.         .
  384.         ,
  385.         $
  386.     Subhead
  387.     0
  388.     0
  389. [tag]
  390.     Title
  391.     8
  392.     [fnt]
  393.         Arial MT
  394.         360
  395.         0
  396.         16385
  397.     [algn]
  398.         4
  399.         1
  400.         0
  401.         0
  402.         0
  403.     [spc]
  404.         33
  405.         446
  406.         1
  407.         144
  408.         72
  409.         1
  410.         100
  411.     [brk]
  412.         16
  413.     [line]
  414.         8
  415.         0
  416.         1
  417.         0
  418.         1
  419.         1
  420.         1
  421.         10
  422.         10
  423.         1
  424.     [spec]
  425.         0
  426.         1
  427.         
  428.         0
  429.         1
  430.         1
  431.         0
  432.         0
  433.         0
  434.         0
  435.     [nfmt]
  436.         272
  437.         1
  438.         2
  439.         .
  440.         ,
  441.         $
  442.     Title
  443.     0
  444.     0
  445. [lay]
  446.     Standard
  447.     513
  448.     [rght]
  449.         15840
  450.         12240
  451.         1
  452.         1440
  453.         1440
  454.         1
  455.         1440
  456.         1440
  457.         0
  458.         1
  459.         0
  460.         1
  461.         0
  462.         2
  463.         1
  464.         1440
  465.         10800
  466.         12
  467.         1
  468.         720
  469.         1
  470.         1440
  471.         1
  472.         2160
  473.         1
  474.         2880
  475.         1
  476.         3600
  477.         1
  478.         4320
  479.         1
  480.         5040
  481.         1
  482.         5760
  483.         1
  484.         6480
  485.         1
  486.         7200
  487.         1
  488.         7920
  489.         1
  490.         8640
  491.     [hrght]
  492.     [lyfrm]
  493.         1
  494.         11200
  495.         0
  496.         0
  497.         12240
  498.         1440
  499.         0
  500.         1
  501.         3
  502.         1 0 0 0 0 0 0
  503.         0
  504.         0
  505.         1
  506.     [frmlay]
  507.         1440
  508.         12240
  509.         1
  510.         1440
  511.         72
  512.         1
  513.         792
  514.         1440
  515.         0
  516.         1
  517.         0
  518.         1
  519.         1
  520.         0
  521.         1
  522.         1440
  523.         10800
  524.         1
  525.         3
  526.         9360
  527.     [txt]
  528. >
  529.     [frght]
  530.     [lyfrm]
  531.         1
  532.         13248
  533.         0
  534.         14400
  535.         12240
  536.         15840
  537.         0
  538.         1
  539.         3
  540.         1 0 0 0 0 0 0
  541.         0
  542.         0
  543.         2
  544.     [frmlay]
  545.         15840
  546.         12240
  547.         1
  548.         1440
  549.         792
  550.         1
  551.         14472
  552.         1440
  553.         0
  554.         1
  555.         0
  556.         1
  557.         1
  558.         0
  559.         1
  560.         1440
  561.         10800
  562.         2
  563.         2
  564.         4680
  565.         3
  566.         9360
  567.     [txt]
  568.  
  569. >
  570. [elay]
  571. [l1]
  572.     0
  573. [edoc]
  574. <+@><:#278,9360>'    Ascend Find Name
  575.  
  576. <+@><:#278,9360>'    Franklin Quest Co.
  577.  
  578. <+@><:#278,9360>'    Copyright </i> 1992
  579.  
  580. <+@><:#278,9360>
  581.  
  582. <+@><:#278,9360>'    This Macro accesses Franklin Quest's Ascend for Windows through DDE (Dynamic
  583.  
  584. <+@><:#278,9360>'    Data Exchange) to link names from Ascend's Address and Phone module into
  585.  
  586. <+@><:#278,9360>'    Ami Professional documents.
  587.  
  588. <+@><:#278,9360>
  589.  
  590. <+@><:#278,9360>
  591.  
  592. <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  593.  
  594. <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  595.  
  596. <+@>Function Main()
  597.  
  598. <+@><:#278,9360>    Declare SetupDDE();
  599.  
  600. <+@>    Declare CloseDDE();
  601.  
  602. <+@>    Declare FreeGlobals();
  603.  
  604. <+@><:#278,9360>    Declare AscendGetNameDialog();
  605.  
  606. <+@>
  607.  
  608. <+@>    Defstr n, result, a$, DDEChannel, errorMsg$, macroPath$;
  609.  
  610. <+@><:#278,9360>
  611.  
  612. <+@><:#278,9360>    '  Global Variables
  613.  
  614. <+@><:#278,9360>    AllocGlobalVar("DDEChannel", 1);
  615.  
  616. <+@><:#278,9360>    AllocGlobalVar("names$", 5);
  617.  
  618. <+@><:#278,9360>    AllocGlobalVar("records$", 5);
  619.  
  620. <+@>    AllocGlobalVar("errorMsg$", 1);
  621.  
  622. <+@>    AllocGlobalVar("length", 1);
  623.  
  624. <+@>    AllocGlobalVar("currentButton", 1);
  625.  
  626. <+@>
  627.  
  628. <+@><:#278,9360>    SetGlobalVar("errorMsg$", "An error occurred.");
  629.  
  630. <+@><:#278,9360>
  631.  
  632. <+@><:#278,9360>    Onerror reportError;
  633.  
  634. <+@><:#278,9360>
  635.  
  636. <+@><:#278,9360>    if (SetupDDE() = 0) then        '  Establish DDE communications
  637.  
  638. <+@><:#278,9360>        FreeGlobals();
  639.  
  640. <+@>        Message("Couldn't initiate DDE communications with Ascend.", "DDE error");
  641.  
  642. <+@><:#278,9360>        Exit Function;
  643.  
  644. <+@><:#278,9360>    endif
  645.  
  646. <+@>
  647.  
  648. <+@>    DDEChannel = GetGlobalVar$("DDEChannel");
  649.  
  650. <+@>
  651.  
  652. <+@>    result = MultiDecide("This macro uses Ascend's Phone Filter.  Do you want to modify the filter?",
  653.  
  654. <+@>                        YesNoCancelButton + QuestionIcon, "Ascend Find Name");
  655.  
  656. <+@>    if result = 2 then    '  Cancel
  657.  
  658. <+@>        FreeGlobals();
  659.  
  660. <+@>        Exit Function;
  661.  
  662. <+@>    elseif result = 6 then
  663.  
  664. <+@>        a$ = DDEReceive$(DDEChannel, "SetFilter");
  665.  
  666. <+@>        a$ = DDEReceive$(DDEChannel, "UseFilter::On");
  667.  
  668. <+@>    endif
  669.  
  670. <+@>
  671.  
  672. <+@>    n = AscendGetNameDialog();
  673.  
  674. <+@>    if n <;> 0 then
  675.  
  676. <+@>        a$ = DDEReceive$(DDEChannel,strcat$("SetActiveRecord:",GetGlobalArray$("records$", n)));
  677.  
  678. <+@>        CloseDDE();
  679.  
  680. <+@>        FreeGlobals();
  681.  
  682. <+@>
  683.  
  684. <+@>        '    Now run the Ascend Insert Field macro
  685.  
  686. <+@>        macroPath$ = strcat$(GetMacPath$(), "ASCAMI2.SMM!Main");
  687.  
  688. <+@>        Calli macroPath$();
  689.  
  690. <+@>    else
  691.  
  692. <+@>        CloseDDE();
  693.  
  694. <+@>        FreeGlobals();
  695.  
  696. <+@>    endif
  697.  
  698. <+@>    
  699.  
  700. <+@><:#278,9360>    Exit Function;
  701.  
  702. <+@><:#278,9360>
  703.  
  704. <+@><:#278,9360>reportError:
  705.  
  706. <+@><:#278,9360>    CloseDDE();
  707.  
  708. <+@>
  709.  
  710. <+@>    errorMsg$ = GetGlobalVar$("errorMsg$");
  711.  
  712. <+@>    Message(errorMsg$, "Ascend Find Name");
  713.  
  714. <+@>
  715.  
  716. <+@>    FreeGlobals();
  717.  
  718. <+@><:#278,9360>End Function
  719.  
  720. <+@><:#278,9360>
  721.  
  722. <+@><:#278,9360>
  723.  
  724. <+@><:#278,9360>
  725.  
  726. <+@><:#278,9360>
  727.  
  728. <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  729.  
  730. <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  731.  
  732. <+@><:#278,9360>Function FreeGlobals()
  733.  
  734. <+@>    FreeGlobalVar("DDEChannel");
  735.  
  736. <+@>    FreeGlobalVar("names$");
  737.  
  738. <+@>    FreeGlobalVar("records$");
  739.  
  740. <+@>    FreeGlobalVar("errorMsg$");
  741.  
  742. <+@>    FreeGlobalVar("length");
  743.  
  744. <+@>    FreeGlobalVar("currentButton");
  745.  
  746. <+@>End Function
  747.  
  748. <+@>
  749.  
  750. <+@>
  751.  
  752. <+@>
  753.  
  754. <+@>
  755.  
  756. <+@>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  757.  
  758. <+@>'    SetErrorMessage() sets the global error message to the given string and returns
  759.  
  760. <+@>'    the previous value
  761.  
  762. <+@>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  763.  
  764. <+@>Function SetErrorMessage$(msg$)
  765.  
  766. <+@>    SetErrorMessage = GetGlobalVar$("errorMsg$");
  767.  
  768. <+@>    SetGlobalVar("errorMsg$", msg$);
  769.  
  770. <+@>End Function
  771.  
  772. <+@>
  773.  
  774. <+@>
  775.  
  776. <+@>
  777.  
  778. <+@>
  779.  
  780. <+@>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  781.  
  782. <+@>'    SetupDDE() establishes the DDE connection with Ascend.
  783.  
  784. <+@>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  785.  
  786. <+@>Function SetupDDE()
  787.  
  788. <+@>    Defstr DDEChannel, oldMsg$;
  789.  
  790. <+@><:#278,9360>
  791.  
  792. <+@>    '    Prepare error message
  793.  
  794. <+@>    oldMsg$ = SetErrorMessage$("Cannot initiate DDE connection with Ascend.");
  795.  
  796. <+@>
  797.  
  798. <+@><:#278,9360>    SetupDDE = 1;
  799.  
  800. <+@><:#278,9360>
  801.  
  802. <+@><:#278,9360>    DDEChannel = DDEInitiate("Ascend", "Phone");
  803.  
  804. <+@><:#278,9360>    if (DDEChannel = 0) ;
  805.  
  806. <+@><:#278,9360>        SetupDDE = 0;
  807.  
  808. <+@><:#278,9360>    Endif
  809.  
  810. <+@><:#278,9360>
  811.  
  812. <+@><:#278,9360>    SetGlobalVar("DDEChannel", DDEChannel);
  813.  
  814. <+@>
  815.  
  816. <+@>    '    Restore error Message
  817.  
  818. <+@>    oldMsg$ = SetErrorMessage$(oldMsg$);
  819.  
  820. <+@><:#278,9360>End Function
  821.  
  822. <+@><:#278,9360>
  823.  
  824. <+@><:#278,9360>
  825.  
  826. <+@><:#278,9360>
  827.  
  828. <+@><:#278,9360>
  829.  
  830. <+@>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  831.  
  832. <+@>'    CloseDDE() closes the DDE connection with Ascend.
  833.  
  834. <+@>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  835.  
  836. <+@><:#278,9360>Function CloseDDE()
  837.  
  838. <+@><:#278,9360>    Defstr DDEChannel;
  839.  
  840. <+@><:#278,9360>
  841.  
  842. <+@><:#278,9360>    DDEChannel = GetGlobalVar$("DDEChannel");
  843.  
  844. <+@><:#278,9360>    DDETerminate(DDEChannel);
  845.  
  846. <+@><:#278,9360>    SetGlobalVar("DDEChannel", 0);
  847.  
  848. <+@><:#278,9360>End Function
  849.  
  850. <+@><:#278,9360>
  851.  
  852. <+@><:#278,9360>
  853.  
  854. <+@><:#278,9360>
  855.  
  856. <+@><:#278,9360>
  857.  
  858. <+@>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  859.  
  860. <+@>'    FixName$() fixes the given name by determining if the name is a last name or a
  861.  
  862. <+@>'    company name.  If it is a last name, it appends a comma and then the first name to it
  863.  
  864. <+@>'    and appends the company name, in parentheses, to that.
  865.  
  866. <+@><:#278,9360>'    If it is a company name, it appends the first and last name in parentheses.
  867.  
  868. <+@>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  869.  
  870. <+@>Function FixName(which)
  871.  
  872. <+@>    Defstr DDEChannel, localName$, localRecord$, fixLast$, fixFirst$, fixComp$, oldMsg$;
  873.  
  874. <+@>
  875.  
  876. <+@>    '    Prepare error message
  877.  
  878. <+@>    oldMsg$ = SetErrorMessage$("Can't resolve name from Ascend.");
  879.  
  880. <+@>
  881.  
  882. <+@><:#278,9360>    DDEChannel = GetGlobalVar$("DDEChannel");
  883.  
  884. <+@>
  885.  
  886. <+@><:#278,9360>    localName$ = GetGlobalArray$("names$", which);
  887.  
  888. <+@><:#278,9360>    localRecord$ = GetGlobalArray$("records$", which);
  889.  
  890. <+@><:#278,9360>
  891.  
  892. <+@><:#278,9360>    fixLast$ = DDEReceive$(DDEChannel, strcat$("GetRec:", localRecord$, ":Last"));
  893.  
  894. <+@><:#278,9360>    fixFirst$ = DDEReceive$(DDEChannel, strcat$("GetRec:", localRecord$, ":First"));
  895.  
  896. <+@><:#556,9360>    fixComp$ = DDEReceive$(DDEChannel, strcat$("GetRec:", localRecord$, ":Company"));
  897.  
  898. <+@><:#278,9360>
  899.  
  900. <+@><:#278,9360>    if localName$ = fixLast$ then
  901.  
  902. <+@><:#278,9360>        if fixFirst$ <<<;> " " then
  903.  
  904. <+@><:#278,9360>            localName$ = strcat$(localName$ ", ", fixFirst$);
  905.  
  906. <+@><:#278,9360>        endif
  907.  
  908. <+@><:#278,9360>        if fixComp$ <<<;> " " then
  909.  
  910. <+@><:#278,9360>            localName$ = strcat$(localName$, " (", fixComp$, ")");
  911.  
  912. <+@><:#278,9360>        endif
  913.  
  914. <+@><:#278,9360>    elseif localName$ = fixComp$ then
  915.  
  916. <+@><:#278,9360>        if fixFirst$ <<<;> " " then
  917.  
  918. <+@><:#278,9360>            localName$ = strcat$(localName$, " (", fixFirst$);
  919.  
  920. <+@><:#278,9360>            if fixLast$ <<<;> " " then
  921.  
  922. <+@><:#278,9360>                localName$ = strcat$(localName$, " ", fixLast$);
  923.  
  924. <+@><:#278,9360>            endif
  925.  
  926. <+@><:#278,9360>            localName$ = strcat$(localName$, ")");
  927.  
  928. <+@><:#278,9360>        elseif fixLast$ <<<;> " " then
  929.  
  930. <+@><:#278,9360>            localName$ = strcat$(localName$, " (", fixLast$, ")");
  931.  
  932. <+@><:#278,9360>        endif
  933.  
  934. <+@><:#278,9360>    endif
  935.  
  936. <+@>
  937.  
  938. <+@>    SetGlobalArray("names$", which, localName$);
  939.  
  940. <+@>    SetGlobalArray("records$", which, localRecord$);
  941.  
  942. <+@>
  943.  
  944. <+@>    '    Restore error message
  945.  
  946. <+@>    oldMsg$ = SetErrorMessage$(oldMsg$);
  947.  
  948. <+@><:#278,9360>End Function
  949.  
  950. <+@><:#278,9360>
  951.  
  952. <+@><:#278,9360>
  953.  
  954. <+@><:#278,9360>
  955.  
  956. <+@><:#278,9360>
  957.  
  958. <+@><:#278,9360>
  959.  
  960. <+@>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  961.  
  962. <+@>'    SetupNamesArray() prepares the list box for the Ascend Get Names dialog.  The list box
  963.  
  964. <+@>'    will show all of Ascend's Address and Phone entries that start with the given letter.
  965.  
  966. <+@>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  967.  
  968. <+@>Function SetupNamesArray(letter$)
  969.  
  970. <+@>    Defstr DDEChannel, letter2$, length, dde$, oldDde$, colon, j, oldMsg$, diff;
  971.  
  972. <+@>
  973.  
  974. <+@>    '    Prepare error message
  975.  
  976. <+@>    oldMsg$ = SetErrorMessage$("Can't set up list box for Ascend Names dialog");
  977.  
  978. <+@>
  979.  
  980. <+@>    '    The letter A represents everything before the letter A as well, such as numbers.
  981.  
  982. <+@><:#278,9360>    '    So, if letter$ is A, ignore it.
  983.  
  984. <+@>    '    Since we only want to show two letters at a time, we need to set the following
  985.  
  986. <+@><:#278,9360>    '    letter as a limit.
  987.  
  988. <+@><:#278,9360>    if letter$ = "A" or letter$ = "a" then
  989.  
  990. <+@><:#278,9360>        letter$ = "";
  991.  
  992. <+@>        letter2$ = "b";
  993.  
  994. <+@>    elseif letter$ = "Z" or letter$ = "z" then
  995.  
  996. <+@><:#278,9360>        letter2$ = "ZZZZZZZZZZZZZZZZZZZ";
  997.  
  998. <+@><:#278,9360>    else
  999.  
  1000. <+@>        letter2$ = chr$(asc(letter$) + 1);
  1001.  
  1002. <+@><:#278,9360>    endif
  1003.  
  1004. <+@><:#278,9360>
  1005.  
  1006. <+@><:#278,9360>    HourGlass(1);
  1007.  
  1008. <+@><:#278,9360>
  1009.  
  1010. <+@><:#278,9360>    DDEChannel = GetGlobalVar$("DDEChannel");
  1011.  
  1012. <+@><:#278,9360>
  1013.  
  1014. <+@>    '    Count the Address and Phone entries from Ascend.
  1015.  
  1016. <+@>    length = DDEReceive$(DDEChannel, strcat$("CountKey::", letter$, ":", letter2$));
  1017.  
  1018. <+@>    SetGlobalVar("length", length);
  1019.  
  1020. <+@>
  1021.  
  1022. <+@>    if length <;> 0 then
  1023.  
  1024. <+@>        '    Redimension our global arrays for the correct amount of entries.
  1025.  
  1026. <+@>        FreeGlobalVar("names$");
  1027.  
  1028. <+@>        FreeGlobalVar("records$");
  1029.  
  1030. <+@>        AllocGlobalVar("names$", length);
  1031.  
  1032. <+@>        AllocGlobalVar("records$", length);
  1033.  
  1034. <+@><:#278,9360>
  1035.  
  1036. <+@><:#278,9360>        '    Get the first entry
  1037.  
  1038. <+@><:#278,9360>        dde$ = DDEReceive$(DDEChannel, strcat$("SearchKey::", letter$));
  1039.  
  1040. <+@><:#278,9360>        colon = InStr(0, dde$, ":");
  1041.  
  1042. <+@>        SetGlobalArray("names$", 1, Right$(dde$, Len(dde$) - colon));
  1043.  
  1044. <+@>        SetGlobalArray("records$", 1, Left$(dde$, colon - 1));
  1045.  
  1046. <+@><:#278,9360>        oldDde$ = dde$;
  1047.  
  1048. <+@><:#278,9360>        FixName(1);
  1049.  
  1050. <+@><:#278,9360>
  1051.  
  1052. <+@><:#278,9360>        '    Get the remaining entries
  1053.  
  1054. <+@><:#278,9360>        for j = 2 to length
  1055.  
  1056. <+@>            '    Inform user of long wait
  1057.  
  1058. <+@>            diff = length - j + 1;
  1059.  
  1060. <+@>            StatusBarMsg("Reading Phone information:  {diff}");
  1061.  
  1062. <+@><:#278,9360>
  1063.  
  1064. <+@><:#278,9360>            dde$ = DDEReceive$(DDEChannel, strcat$("NextKey:", oldDde$));
  1065.  
  1066. <+@>            colon = InStr(0, dde$, ":");
  1067.  
  1068. <+@>            SetGlobalArray("names$", j, Right$(dde$, Len(dde$) - colon));
  1069.  
  1070. <+@>            SetGlobalArray("records$", j, Left$(dde$, colon - 1));
  1071.  
  1072. <+@><:#278,9360>            oldDde$ = dde$;
  1073.  
  1074. <+@><:#278,9360>            FixName(j);
  1075.  
  1076. <+@><:#278,9360>        next
  1077.  
  1078. <+@><:#278,9360>
  1079.  
  1080. <+@><:#278,9360>        StatusBarMsg("");
  1081.  
  1082. <+@>    endif
  1083.  
  1084. <+@><:#278,9360>
  1085.  
  1086. <+@><:#278,9360>    HourGlass(0)
  1087.  
  1088. <+@>
  1089.  
  1090. <+@>    '    Restore error message
  1091.  
  1092. <+@>    oldMsg$ = SetErrorMessage$(oldMsg$);
  1093.  
  1094. <+@>End Function
  1095.  
  1096. <+@>
  1097.  
  1098. <+@>
  1099.  
  1100. <+@>
  1101.  
  1102. <+@>
  1103.  
  1104. <+@>
  1105.  
  1106. <+@>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  1107.  
  1108. <+@>'    LetterCallBack() is the dialog call-back procedure for the letter buttons
  1109.  
  1110. <+@>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  1111.  
  1112. <+@>Function LetterCallBack(hdlg, item, value)
  1113.  
  1114. <+@>    Defstr handle, length, j, oldMsg$;
  1115.  
  1116. <+@>
  1117.  
  1118. <+@>    '    Prepare error message
  1119.  
  1120. <+@>    oldMsg$ = SetErrorMessage$("Can't update list box.");
  1121.  
  1122. <+@>
  1123.  
  1124. <+@>    if GetGlobalVar$("currentButton") = item then
  1125.  
  1126. <+@>        Exit Function
  1127.  
  1128. <+@>    endif
  1129.  
  1130. <+@>
  1131.  
  1132. <+@>    SetGlobalVar("currentButton", item);
  1133.  
  1134. <+@>
  1135.  
  1136. <+@>    handle = GetDlgItem(hdlg, 9000);    '    Get the list box's window handle
  1137.  
  1138. <+@>    AppSendMessage(handle, 0x0405, 0, 0);    '    Clear the list box
  1139.  
  1140. <+@>
  1141.  
  1142. <+@>    SetDlgItemText(hdlg, 9000, "Reading Phone information . . . ");
  1143.  
  1144. <+@>
  1145.  
  1146. <+@>    SetupNamesArray(chr$(item - 20 + asc("a")));        '    recalculate names
  1147.  
  1148. <+@>
  1149.  
  1150. <+@>    AppSendMessage(handle, 0x0405, 0, 0);    '    Clear the list box
  1151.  
  1152. <+@>
  1153.  
  1154. <+@>    length = GetGlobalVar$("length");        '    Count the names
  1155.  
  1156. <+@>    for j = 1 to length
  1157.  
  1158. <+@>        SetDlgItemText(hdlg, 9000, GetGlobalArray$("names$", j));    '    Add to list box
  1159.  
  1160. <+@>    next
  1161.  
  1162. <+@>
  1163.  
  1164. <+@>    '    Restore error message
  1165.  
  1166. <+@>    oldMsg$ = SetErrorMessage$(oldMsg$);
  1167.  
  1168. <+@>End Function
  1169.  
  1170. <+@>
  1171.  
  1172. <+@>
  1173.  
  1174. <+@>
  1175.  
  1176. <+@>
  1177.  
  1178. <+@>
  1179.  
  1180. <+@>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  1181.  
  1182. <+@>'    AscendGetNameDialog() presents the user with a dialog to select a name from
  1183.  
  1184. <+@>'    Ascend's Address and Phone directory.
  1185.  
  1186. <+@>'    The return value in the index into the global names$ and records$ arrays that
  1187.  
  1188. <+@>'    corresponds to the selected entry, or -1 if they cancel.
  1189.  
  1190. <+@>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
  1191.  
  1192. <+@>Function AscendGetNameDialog()
  1193.  
  1194. <+@>    Defstr result, oldMsg$, j, length, theName$;
  1195.  
  1196. <+@>
  1197.  
  1198. <+@>    '    Prepare error message
  1199.  
  1200. <+@>    oldMsg$ = SetErrorMessage$("Error with Ascend Names dialog.");
  1201.  
  1202. <+@>
  1203.  
  1204. <+@><:#278,9360>    AscendGetNameDialog = -1;
  1205.  
  1206. <+@>
  1207.  
  1208. <+@>    '     Prepare names and add to list box
  1209.  
  1210. <+@>    SetupNamesArray("a");
  1211.  
  1212. <+@>    length = GetGlobalVar$("length");
  1213.  
  1214. <+@>    for j = 1 to length
  1215.  
  1216. <+@>        FillList(GetGlobalArray$("names$", j));
  1217.  
  1218. <+@>    next
  1219.  
  1220. <+@>
  1221.  
  1222. <+@>    '    Set call-back procedure for the letter buttons
  1223.  
  1224. <+@>    for j = 20 to 45
  1225.  
  1226. <+@>        SetDlgCallBack(j, "LetterCallBack");
  1227.  
  1228. <+@>    next
  1229.  
  1230. <+@>
  1231.  
  1232. <+@>    FillEdit(20, TRUE);
  1233.  
  1234. <+@>    SetGlobalVar("currentButton", 20);
  1235.  
  1236. <+@>
  1237.  
  1238. <+@>    result = DialogBox(".", "AscendGetName");
  1239.  
  1240. <+@>    if result =1 then
  1241.  
  1242. <+@>        '    length may have changed in the call-back procedure
  1243.  
  1244. <+@>        length = GetGlobalVar$("length");
  1245.  
  1246. <+@>
  1247.  
  1248. <+@>        '    Figure out the number of the name they selected
  1249.  
  1250. <+@>        theName$ = GetDialogField$(9000);
  1251.  
  1252. <+@>        for j = 1 to length
  1253.  
  1254. <+@>            if theName$ = GetGlobalArray$("names$", j) then
  1255.  
  1256. <+@>                AscendGetNameDialog = j;
  1257.  
  1258. <+@>                break;
  1259.  
  1260. <+@>            endif
  1261.  
  1262. <+@>        next
  1263.  
  1264. <+@>    endif
  1265.  
  1266. <+@>
  1267.  
  1268. <+@>    '    Restore error message
  1269.  
  1270. <+@>    oldMsg$ = SetErrorMessage$(oldMsg$);
  1271.  
  1272. <+@>End Function
  1273.  
  1274. <+@><:#278,9360>
  1275.  
  1276. <+@><:#278,9360>
  1277.  
  1278. DIALOG    AscendGetName
  1279.  
  1280. -2134900736    30    81    63    277    143    ""    ""    "Ascend Find Name"
  1281.  
  1282. FONT    8    "Helv"
  1283.  
  1284. 232    18    40    14    1    1342373889    "button"    "OK"    0 
  1285.  
  1286. 232    37    40    14    2    1342373888    "button"    "Cancel"    0 
  1287.  
  1288. 163    18    18    13    20    1342373897    "button"    "&A"    0 
  1289.  
  1290. 163    31    18    13    21    1342177289    "button"    "&B"    0 
  1291.  
  1292. 163    44    18    13    22    1342177289    "button"    "&C"    0 
  1293.  
  1294. 163    57    18    13    23    1342177289    "button"    "&D"    0 
  1295.  
  1296. 163    70    18    13    24    1342177289    "button"    "&E"    0 
  1297.  
  1298. 163    83    18    13    25    1342177289    "button"    "&F"    0 
  1299.  
  1300. 163    96    18    13    26    1342177289    "button"    "&G"    0 
  1301.  
  1302. 163    109    18    13    27    1342177289    "button"    "&H"    0 
  1303.  
  1304. 163    122    18    13    28    1342177289    "button"    "&I"    0 
  1305.  
  1306. 186    18    18    13    29    1342177289    "button"    "&J"    0 
  1307.  
  1308. 186    31    18    13    30    1342177289    "button"    "&K"    0 
  1309.  
  1310. 186    44    18    13    31    1342177289    "button"    "&L"    0 
  1311.  
  1312. 186    57    18    13    32    1342177289    "button"    "&M"    0 
  1313.  
  1314. 186    70    18    13    33    1342177289    "button"    "&N"    0 
  1315.  
  1316. 186    83    18    13    34    1342177289    "button"    "&O"    0 
  1317.  
  1318. 186    96    18    13    35    1342177289    "button"    "&P"    0 
  1319.  
  1320. 186    109    18    13    36    1342177289    "button"    "&Q"    0 
  1321.  
  1322. 186    122    18    13    37    1342177289    "button"    "&R"    0 
  1323.  
  1324. 209    18    18    13    38    1342177289    "button"    "&S"    0 
  1325.  
  1326. 209    31    18    13    39    1342177289    "button"    "&T"    0 
  1327.  
  1328. 209    44    18    13    40    1342177289    "button"    "&U"    0 
  1329.  
  1330. 209    57    18    13    41    1342177289    "button"    "&V"    0 
  1331.  
  1332. 209    70    18    13    42    1342177289    "button"    "&W"    0 
  1333.  
  1334. 209    83    18    13    43    1342177289    "button"    "&X"    0 
  1335.  
  1336. 209    96    18    13    44    1342177289    "button"    "&Y"    0 
  1337.  
  1338. 209    109    18    13    45    1342177289    "button"    "&Z"    0 
  1339.  
  1340. 6    5    145    10    1000    1342308352    "static"    "Select an Ascend Address and Phone Entry:"    0 
  1341.  
  1342. 6    18    150    119    9000    1352859651    "listbox"    ""    0 
  1343.  
  1344. END DIALOG
  1345.  
  1346. >
  1347.  
  1348. [Embedded]
  1349. 00021240
  1350. >
  1351. [macsum] 10
  1352. Main 0 0 7 11
  1353. FreeGlobals 1041 0 1 79
  1354. SetErrorMessage$ 1181 1 2 95
  1355. SetupDDE 1267 0 3 106
  1356. CloseDDE 1510 0 2 131
  1357. FixName 1597 1 8 148
  1358. SetupNamesArray 2484 1 10 197
  1359. LetterCallBack 3766 3 5 269
  1360. AscendGetNameDialog 4347 0 6 309
  1361. AscendGetName 5123 0 -1 352
  1362. [macse]
  1363. 14 Main
  1364. 0 271 "DDEChannel" 1
  1365. 0 271 "names$" 5
  1366. 0 271 "records$" 5
  1367. 0 271 "errorMsg$" 1
  1368. 0 271 "length" 1
  1369. 0 271 "currentButton" 1
  1370. 0 264 "errorMsg$" "An error occurred."
  1371. 20 00000942
  1372. 16 SetupDDE
  1373. 13
  1374. 5 0
  1375. 18 0
  1376. 11 00000324
  1377. 16 FreeGlobals
  1378. 0 3 "Couldn't initiate DDE communications with Ascend." "DDE error"
  1379. 6 0
  1380. 15
  1381. 9
  1382. 0 265 "DDEChannel"
  1383. 13
  1384. 8 4
  1385. 5 3
  1386. 5 32
  1387. 3 0
  1388. 0 21 "This macro uses Ascend's Phone Filter.  Do you want to modify the filter?" [X] "Ascend Find Name"
  1389. 13
  1390. 8 2
  1391. 6 2
  1392. 5 2
  1393. 18 0
  1394. 11 00000553
  1395. 16 FreeGlobals
  1396. 6 0
  1397. 15
  1398. 9
  1399. 10 00000652
  1400. 6 2
  1401. 5 6
  1402. 18 0
  1403. 11 00000652
  1404. 0 10 "{4}" "SetFilter"
  1405. 13
  1406. 8 3
  1407. 0 10 "{4}" "UseFilter::On"
  1408. 13
  1409. 8 3
  1410. 16 AscendGetNameDialog
  1411. 13
  1412. 8 1
  1413. 6 1
  1414. 5 0
  1415. 18 3
  1416. 11 00000901
  1417. 0 273 "records$" "{1}"
  1418. 13
  1419. 0 16 "SetActiveRecord:" [X]
  1420. 13
  1421. 0 10 "{4}" [X]
  1422. 13
  1423. 8 3
  1424. 16 CloseDDE
  1425. 16 FreeGlobals
  1426. 0 295
  1427. 13
  1428. 0 16 [X] "ASCAMI2.SMM!Main"
  1429. 13
  1430. 8 6
  1431. 16 "{6}"
  1432. 10 00000930
  1433. 16 CloseDDE
  1434. 16 FreeGlobals
  1435. 6 0
  1436. 15
  1437. 9
  1438. 16 CloseDDE
  1439. 0 265 "errorMsg$"
  1440. 13
  1441. 8 5
  1442. 0 3 "{5}" "Ascend Find Name"
  1443. 16 FreeGlobals
  1444. 6 0
  1445. 15
  1446. 9
  1447. 14 FreeGlobals
  1448. 0 266 "DDEChannel"
  1449. 0 266 "names$"
  1450. 0 266 "records$"
  1451. 0 266 "errorMsg$"
  1452. 0 266 "length"
  1453. 0 266 "currentButton"
  1454. 6 0
  1455. 15
  1456. 9
  1457. 14 SetErrorMessage$
  1458. 0 265 "errorMsg$"
  1459. 13
  1460. 8 2
  1461. 0 264 "errorMsg$" "{0}"
  1462. 6 1
  1463. 15
  1464. 9
  1465. 14 SetupDDE
  1466. 16 SetErrorMessage$ "Cannot initiate DDE connection with Ascend."
  1467. 13
  1468. 8 2
  1469. 5 1
  1470. 8 0
  1471. 0 8 "Ascend" "Phone"
  1472. 13
  1473. 8 1
  1474. 6 1
  1475. 5 0
  1476. 18 0
  1477. 11 00000169
  1478. 5 0
  1479. 8 0
  1480. 0 264 "DDEChannel" "{1}"
  1481. 16 SetErrorMessage$ "{2}"
  1482. 13
  1483. 8 2
  1484. 6 0
  1485. 15
  1486. 9
  1487. 14 CloseDDE
  1488. 0 265 "DDEChannel"
  1489. 13
  1490. 8 1
  1491. 0 9 "{1}"
  1492. 0 264 "DDEChannel" 0
  1493. 6 0
  1494. 15
  1495. 9
  1496. 14 FixName
  1497. 16 SetErrorMessage$ "Can't resolve name from Ascend."
  1498. 13
  1499. 8 8
  1500. 0 265 "DDEChannel"
  1501. 13
  1502. 8 2
  1503. 0 273 "names$" "{0}"
  1504. 13
  1505. 8 3
  1506. 0 273 "records$" "{0}"
  1507. 13
  1508. 8 4
  1509. 0 16 "GetRec:" "{4}" ":Last"
  1510. 13
  1511. 0 10 "{2}" [X]
  1512. 13
  1513. 8 5
  1514. 0 16 "GetRec:" "{4}" ":First"
  1515. 13
  1516. 0 10 "{2}" [X]
  1517. 13
  1518. 8 6
  1519. 0 16 "GetRec:" "{4}" ":Company"
  1520. 13
  1521. 0 10 "{2}" [X]
  1522. 13
  1523. 8 7
  1524. 6 3
  1525. 6 5
  1526. 18 0
  1527. 11 00000522
  1528. 6 6
  1529. 7 " "
  1530. 18 1
  1531. 11 00000442
  1532. 0 16 "{3}" ", " "{6}"
  1533. 13
  1534. 8 3
  1535. 6 7
  1536. 7 " "
  1537. 18 1
  1538. 11 00000509
  1539. 0 16 "{3}" " (" "{7}" ")"
  1540. 13
  1541. 8 3
  1542. 10 00000781
  1543. 6 3
  1544. 6 7
  1545. 18 0
  1546. 11 00000781
  1547. 6 6
  1548. 7 " "
  1549. 18 1
  1550. 11 00000714
  1551. 0 16 "{3}" " (" "{6}"
  1552. 13
  1553. 8 3
  1554. 6 5
  1555. 7 " "
  1556. 18 1
  1557. 11 00000676
  1558. 0 16 "{3}" " " "{5}"
  1559. 13
  1560. 8 3
  1561. 0 16 "{3}" ")"
  1562. 13
  1563. 8 3
  1564. 10 00000781
  1565. 6 5
  1566. 7 " "
  1567. 18 1
  1568. 11 00000781
  1569. 0 16 "{3}" " (" "{5}" ")"
  1570. 13
  1571. 8 3
  1572. 0 272 "names$" "{0}" "{3}"
  1573. 0 272 "records$" "{0}" "{4}"
  1574. 16 SetErrorMessage$ "{8}"
  1575. 13
  1576. 8 8
  1577. 6 1
  1578. 15
  1579. 9
  1580. 14 SetupNamesArray
  1581. 16 SetErrorMessage$ "Can't set up list box for Ascend Names dialog"
  1582. 13
  1583. 8 9
  1584. 6 0
  1585. 7 "A"
  1586. 18 0
  1587. 6 0
  1588. 7 "a"
  1589. 18 0
  1590. 1 2
  1591. 11 00000188
  1592. 7 ""
  1593. 8 0
  1594. 7 "b"
  1595. 8 3
  1596. 10 00000330
  1597. 6 0
  1598. 7 "Z"
  1599. 18 0
  1600. 6 0
  1601. 7 "z"
  1602. 18 0
  1603. 1 2
  1604. 11 00000285
  1605. 7 "ZZZZZZZZZZZZZZZZZZZ"
  1606. 8 3
  1607. 10 00000330
  1608. 0 40 "{0}"
  1609. 13
  1610. 5 1
  1611. 3 0
  1612. 0 39 [X]
  1613. 13
  1614. 8 3
  1615. 0 296 1
  1616. 0 265 "DDEChannel"
  1617. 13
  1618. 8 2
  1619. 0 16 "CountKey::" "{0}" ":" "{3}"
  1620. 13
  1621. 0 10 "{2}" [X]
  1622. 13
  1623. 8 4
  1624. 0 264 "length" "{4}"
  1625. 6 4
  1626. 5 0
  1627. 18 3
  1628. 11 00001225
  1629. 0 266 "names$"
  1630. 0 266 "records$"
  1631. 0 271 "names$" "{4}"
  1632. 0 271 "records$" "{4}"
  1633. 0 16 "SearchKey::" "{0}"
  1634. 13
  1635. 0 10 "{2}" [X]
  1636. 13
  1637. 8 5
  1638. 0 808 0 "{5}" ":"
  1639. 13
  1640. 8 7
  1641. 0 14 "{5}"
  1642. 13
  1643. 6 7
  1644. 3 1
  1645. 0 807 "{5}" [X]
  1646. 13
  1647. 0 272 "names$" 1 [X]
  1648. 6 7
  1649. 5 1
  1650. 3 1
  1651. 0 806 "{5}" [X]
  1652. 13
  1653. 0 272 "records$" 1 [X]
  1654. 6 5
  1655. 8 6
  1656. 16 FixName 1
  1657. 5 2
  1658. 8 8
  1659. 6 4
  1660. 6 8
  1661. 18 2
  1662. 12 00000884
  1663. 10 00001215
  1664. 5 1
  1665. 6 8
  1666. 3 0
  1667. 8 8
  1668. 10 00000809
  1669. 6 4
  1670. 6 8
  1671. 3 1
  1672. 5 1
  1673. 3 0
  1674. 8 10
  1675. 0 789 "Reading Phone information:  {10}"
  1676. 0 16 "NextKey:" "{6}"
  1677. 13
  1678. 0 10 "{2}" [X]
  1679. 13
  1680. 8 5
  1681. 0 808 0 "{5}" ":"
  1682. 13
  1683. 8 7
  1684. 0 14 "{5}"
  1685. 13
  1686. 6 7
  1687. 3 1
  1688. 0 807 "{5}" [X]
  1689. 13
  1690. 0 272 "names$" "{8}" [X]
  1691. 6 7
  1692. 5 1
  1693. 3 1
  1694. 0 806 "{5}" [X]
  1695. 13
  1696. 0 272 "records$" "{8}" [X]
  1697. 6 5
  1698. 8 6
  1699. 16 FixName "{8}"
  1700. 10 00000851
  1701. 0 789 ""
  1702. 0 296 0
  1703. 16 SetErrorMessage$ "{9}"
  1704. 13
  1705. 8 9
  1706. 6 1
  1707. 15
  1708. 9
  1709. 14 LetterCallBack
  1710. 16 SetErrorMessage$ "Can't update list box."
  1711. 13
  1712. 8 7
  1713. 0 265 "currentButton"
  1714. 13
  1715. 6 1
  1716. 18 0
  1717. 11 00000137
  1718. 6 3
  1719. 15
  1720. 9
  1721. 0 264 "currentButton" "{1}"
  1722. 0 44 "{0}" 9000
  1723. 13
  1724. 8 4
  1725. 0 1036 "{4}" 1029 0 0
  1726. 0 43 "{0}" 9000 "Reading Phone information . . . "
  1727. 6 1
  1728. 5 20
  1729. 3 1
  1730. 0 40 "a"
  1731. 13
  1732. 3 0
  1733. 0 39 [X]
  1734. 13
  1735. 16 SetupNamesArray [X]
  1736. 0 1036 "{4}" 1029 0 0
  1737. 0 265 "length"
  1738. 13
  1739. 8 5
  1740. 5 1
  1741. 8 6
  1742. 6 5
  1743. 6 6
  1744. 18 2
  1745. 12 00000473
  1746. 10 00000533
  1747. 5 1
  1748. 6 6
  1749. 3 0
  1750. 8 6
  1751. 10 00000398
  1752. 0 273 "names$" "{6}"
  1753. 13
  1754. 0 43 "{0}" 9000 [X]
  1755. 10 00000440
  1756. 16 SetErrorMessage$ "{7}"
  1757. 13
  1758. 8 7
  1759. 6 3
  1760. 15
  1761. 9
  1762. 14 AscendGetNameDialog
  1763. 16 SetErrorMessage$ "Error with Ascend Names dialog."
  1764. 13
  1765. 8 2
  1766. 5 -1
  1767. 8 0
  1768. 16 SetupNamesArray "a"
  1769. 0 265 "length"
  1770. 13
  1771. 8 4
  1772. 5 1
  1773. 8 3
  1774. 6 4
  1775. 6 3
  1776. 18 2
  1777. 12 00000233
  1778. 10 00000282
  1779. 5 1
  1780. 6 3
  1781. 3 0
  1782. 8 3
  1783. 10 00000158
  1784. 0 273 "names$" "{3}"
  1785. 13
  1786. 0 25 [X]
  1787. 10 00000200
  1788. 5 20
  1789. 8 3
  1790. 5 45
  1791. 6 3
  1792. 18 2
  1793. 12 00000369
  1794. 10 00000411
  1795. 5 1
  1796. 6 3
  1797. 3 0
  1798. 8 3
  1799. 10 00000293
  1800. 0 41 "{3}" "LetterCallBack"
  1801. 10 00000336
  1802. 0 31 20 1
  1803. 0 264 "currentButton" 20
  1804. 0 26 "." "AscendGetName"
  1805. 13
  1806. 8 1
  1807. 6 1
  1808. 5 1
  1809. 18 0
  1810. 11 00000728
  1811. 0 265 "length"
  1812. 13
  1813. 8 4
  1814. 0 27 9000
  1815. 13
  1816. 8 5
  1817. 5 1
  1818. 8 3
  1819. 6 4
  1820. 6 3
  1821. 18 2
  1822. 12 00000642
  1823. 10 00000728
  1824. 5 1
  1825. 6 3
  1826. 3 0
  1827. 8 3
  1828. 10 00000567
  1829. 6 5
  1830. 0 273 "names$" "{3}"
  1831. 13
  1832. 18 0
  1833. 11 00000715
  1834. 6 3
  1835. 8 0
  1836. 10 00000728
  1837. 10 00000609
  1838. 16 SetErrorMessage$ "{2}"
  1839. 13
  1840. 8 2
  1841. 6 0
  1842. 15
  1843. 9
  1844. DIALOG AscendGetName
  1845. -2134900736 30 81 63 277 143 "" "" "Ascend Find Name" 
  1846. FONT 8 "Helv" 
  1847. 232 18 40 14 1 1342373889 "button" "OK" 0 
  1848. 232 37 40 14 2 1342373888 "button" "Cancel" 0 
  1849. 163 18 18 13 20 1342373897 "button" "&A" 0 
  1850. 163 31 18 13 21 1342177289 "button" "&B" 0 
  1851. 163 44 18 13 22 1342177289 "button" "&C" 0 
  1852. 163 57 18 13 23 1342177289 "button" "&D" 0 
  1853. 163 70 18 13 24 1342177289 "button" "&E" 0 
  1854. 163 83 18 13 25 1342177289 "button" "&F" 0 
  1855. 163 96 18 13 26 1342177289 "button" "&G" 0 
  1856. 163 109 18 13 27 1342177289 "button" "&H" 0 
  1857. 163 122 18 13 28 1342177289 "button" "&I" 0 
  1858. 186 18 18 13 29 1342177289 "button" "&J" 0 
  1859. 186 31 18 13 30 1342177289 "button" "&K" 0 
  1860. 186 44 18 13 31 1342177289 "button" "&L" 0 
  1861. 186 57 18 13 32 1342177289 "button" "&M" 0 
  1862. 186 70 18 13 33 1342177289 "button" "&N" 0 
  1863. 186 83 18 13 34 1342177289 "button" "&O" 0 
  1864. 186 96 18 13 35 1342177289 "button" "&P" 0 
  1865. 186 109 18 13 36 1342177289 "button" "&Q" 0 
  1866. 186 122 18 13 37 1342177289 "button" "&R" 0 
  1867. 209 18 18 13 38 1342177289 "button" "&S" 0 
  1868. 209 31 18 13 39 1342177289 "button" "&T" 0 
  1869. 209 44 18 13 40 1342177289 "button" "&U" 0 
  1870. 209 57 18 13 41 1342177289 "button" "&V" 0 
  1871. 209 70 18 13 42 1342177289 "button" "&W" 0 
  1872. 209 83 18 13 43 1342177289 "button" "&X" 0 
  1873. 209 96 18 13 44 1342177289 "button" "&Y" 0 
  1874. 209 109 18 13 45 1342177289 "button" "&Z" 0 
  1875. 6 5 145 10 1000 1342308352 "static" "Select an Ascend Address and Phone Entry:" 0 
  1876. 6 18 150 119 9000 1352859651 "listbox" "" 0 
  1877. 00021265
  1878.