home *** CD-ROM | disk | FTP | other *** search
INI File | 1992-10-29 | 64.3 KB | 3,666 lines |
- [ver]
- 4
- [sty]
-
- [files]
- [charset]
- 82
- ANSI (Windows, IBM CP 1252)
- [revisions]
- 0
- [prn]
- NEC Silentwriter LC890XL
- [port]
- LPT2:
- [lang]
- 1
- [desc]
- Ascend Insert Field, uses DDE to insert a field from one of Ascend's Address and Phone module entries
-
-
-
-
- 720371784
- 20
- 719679532
- 1375
- 18
- 0
- 0
- 0
- 0
-
-
-
-
-
-
- 0
- [fopts]
- 0
- 1
- 0
- 0
- [lnopts]
- 2
- Body Text
- 1
- [docopts]
- 5
- 3
- [GramStyle]
-
- [tag]
- Body Text
- 2
- [fnt]
- TimesNewRomanPS
- 240
- 0
- 49152
- [algn]
- 1
- 1
- 0
- 0
- 0
- [spc]
- 33
- 273
- 1
- 0
- 0
- 1
- 100
- [brk]
- 4
- [line]
- 8
- 0
- 1
- 0
- 1
- 1
- 1
- 10
- 10
- 1
- [spec]
- 0
- 0
-
- 0
- 1
- 1
- 0
- 0
- 0
- 0
- [nfmt]
- 280
- 1
- 2
- .
- ,
- $
- Body Text
- 0
- 0
- [tag]
- Body Single
- 3
- [fnt]
- TimesNewRomanPS
- 240
- 0
- 49152
- [algn]
- 1
- 1
- 0
- 0
- 0
- [spc]
- 33
- 273
- 1
- 0
- 0
- 1
- 100
- [brk]
- 4
- [line]
- 8
- 0
- 1
- 0
- 1
- 1
- 1
- 10
- 10
- 1
- [spec]
- 0
- 0
-
- 0
- 1
- 1
- 0
- 0
- 0
- 0
- [nfmt]
- 280
- 1
- 2
- .
- ,
- $
- Body Single
- 0
- 0
- [tag]
- Bullet
- 4
- [fnt]
- TimesNewRomanPS
- 240
- 0
- 49152
- [algn]
- 1
- 1
- 0
- 288
- 288
- [spc]
- 33
- 273
- 1
- 0
- 0
- 1
- 100
- [brk]
- 4
- [line]
- 8
- 0
- 1
- 0
- 1
- 1
- 1
- 10
- 10
- 1
- [spec]
- 0
- 0
- <*0>
- 360
- 1
- 1
- 0
- 0
- 0
- 0
- [nfmt]
- 272
- 1
- 2
- .
- ,
- $
- Bullet
- 0
- 0
- [tag]
- Bullet 1
- 5
- [fnt]
- TimesNewRomanPS
- 240
- 0
- 49152
- [algn]
- 1
- 1
- 288
- 288
- 288
- [spc]
- 33
- 273
- 1
- 0
- 0
- 1
- 100
- [brk]
- 4
- [line]
- 8
- 0
- 1
- 0
- 1
- 1
- 1
- 10
- 10
- 1
- [spec]
- 0
- 0
- <*5>
- 0
- 1
- 1
- 0
- 0
- 0
- 0
- [nfmt]
- 280
- 1
- 2
- .
- ,
- $
- Bullet 1
- 0
- 0
- [tag]
- Number List
- 6
- [fnt]
- TimesNewRomanPS
- 240
- 0
- 49152
- [algn]
- 1
- 1
- 360
- 360
- 360
- [spc]
- 33
- 273
- 1
- 0
- 0
- 1
- 100
- [brk]
- 4
- [line]
- 8
- 0
- 1
- 0
- 1
- 1
- 1
- 10
- 10
- 1
- [spec]
- 0
- 0
- <*:>.
- 360
- 1
- 1
- 0
- 0
- 0
- 0
- [nfmt]
- 272
- 1
- 2
- .
- ,
- $
- Number List
- 0
- 0
- [tag]
- Subhead
- 7
- [fnt]
- TimesNewRomanPS
- 240
- 0
- 49155
- [algn]
- 1
- 1
- 0
- 0
- 0
- [spc]
- 33
- 273
- 1
- 72
- 72
- 1
- 100
- [brk]
- 4
- [line]
- 8
- 0
- 1
- 0
- 1
- 1
- 1
- 10
- 10
- 1
- [spec]
- 0
- 2
-
- 0
- 1
- 1
- 0
- 0
- 0
- 0
- [nfmt]
- 272
- 1
- 2
- .
- ,
- $
- Subhead
- 0
- 0
- [tag]
- Title
- 8
- [fnt]
- Arial MT
- 360
- 0
- 16385
- [algn]
- 4
- 1
- 0
- 0
- 0
- [spc]
- 33
- 446
- 1
- 144
- 72
- 1
- 100
- [brk]
- 16
- [line]
- 8
- 0
- 1
- 0
- 1
- 1
- 1
- 10
- 10
- 1
- [spec]
- 0
- 1
-
- 0
- 1
- 1
- 0
- 0
- 0
- 0
- [nfmt]
- 272
- 1
- 2
- .
- ,
- $
- Title
- 0
- 0
- [lay]
- Standard
- 513
- [rght]
- 15840
- 12240
- 1
- 1440
- 1440
- 1
- 1440
- 1440
- 0
- 1
- 0
- 1
- 0
- 2
- 1
- 1440
- 10800
- 12
- 1
- 720
- 1
- 1440
- 1
- 2160
- 1
- 2880
- 1
- 3600
- 1
- 4320
- 1
- 5040
- 1
- 5760
- 1
- 6480
- 1
- 7200
- 1
- 7920
- 1
- 8640
- [hrght]
- [lyfrm]
- 1
- 11200
- 0
- 0
- 12240
- 1440
- 0
- 1
- 3
- 1 0 0 0 0 0 0
- 0
- 0
- 1
- [frmlay]
- 1440
- 12240
- 1
- 1440
- 72
- 1
- 792
- 1440
- 0
- 1
- 0
- 1
- 1
- 0
- 1
- 1440
- 10800
- 1
- 3
- 9360
- [txt]
- >
- [frght]
- [lyfrm]
- 1
- 13248
- 0
- 14400
- 12240
- 15840
- 0
- 1
- 3
- 1 0 0 0 0 0 0
- 0
- 0
- 2
- [frmlay]
- 15840
- 12240
- 1
- 1440
- 792
- 1
- 14472
- 1440
- 0
- 1
- 0
- 1
- 1
- 0
- 1
- 1440
- 10800
- 2
- 2
- 4680
- 3
- 9360
- [txt]
-
- >
- [elay]
- [l1]
- 0
- [edoc]
- <+@><:#278,9360>' Ascend Insert Field
-
- <+@><:#278,9360>' Franklin Quest Co.
-
- <+@><:#278,9360>' Copyright </i> 1992
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>' This Macro accesses Franklin Quest's Ascend for Windows through DDE (Dynamic
-
- <+@><:#278,9360>' Data Exchange) to insert fields from Ascend's Address and Phone module into
-
- <+@><:#278,9360>' Ami Professional documents.
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>Function Main()
-
- <+@><:#278,9360> Declare SetupDDE();
-
- <+@><:#278,9360> Declare CloseDDE();
-
- <+@><:#278,9360> Declare FreeGlobals();
-
- <+@><:#278,9360> Declare AscendGetFieldDialog(theName$);
-
- <+@><:#278,9360> Declare DoCustomFields(theField);
-
- <+@><:#278,9360> Declare FixName();
-
- <+@><:#278,9360> Declare InsertAscendField(theField, enter);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> Defstr f, DDEChannel, errorMsg$, macroPath$, selectedRecord, selectedName$;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Global Variables
-
- <+@><:#278,9360> AllocGlobalVar("DDEChannel", 1);
-
- <+@><:#278,9360> AllocGlobalVar("selectedName$", 1);
-
- <+@><:#278,9360> AllocGlobalVar("selectedRecord", 1);
-
- <+@><:#278,9360> AllocGlobalVar("errorMsg$", 1);
-
- <+@> AllocGlobalVar("fields$", 59);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> SetGlobalVar("errorMsg$", "An error occurred.");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> Onerror reportError;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> if (SetupDDE() = 0) then ' Establish DDE communications
-
- <+@><:#278,9360> FreeGlobals();
-
- <+@><:#278,9360> Message("Can't initiate DDE communications with Ascend.", "DDE error");
-
- <+@><:#278,9360> Exit Function;
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> DDEChannel = GetGlobalVar$("DDEChannel");
-
- <+@><:#278,9360>
-
- <+@> ' Get the active record from Ascend. If there isn't one,
-
- <+@> ' run the Ascend Find Name macro first.
-
- <+@><:#278,9360> selectedRecord = DDEReceive$(DDEChannel, "GetActiveRecord");
-
- <+@><:#278,9360> if selectedRecord = 0 then
-
- <+@><:#278,9360> CloseDDE();
-
- <+@><:#278,9360> macroPath$ = strcat$(GetMacPath$(), "ASCAMI1.SMM!Main");
-
- <+@> Calli macroPath$();
-
- <+@> Exit Function;
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> SetGlobalVar("selectedRecord", selectedRecord);
-
- <+@><:#556,9360> selectedName$ = DDEReceive$(DDEChannel, strcat$("GetRec:", selectedRecord, ":Last"));
-
- <+@><:#278,9360> FixName();
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> f = AscendGetFieldDialog(selectedRecord);
-
- <+@><:#278,9360> if f << 0 then
-
- <+@><:#278,9360> CloseDDE();
-
- <+@><:#278,9360> FreeGlobals()
-
- <+@><:#278,9360> Exit Function;
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Special case for custom fields or Contact History
-
- <+@><:#278,9360> if f << 9 or f = 59 then
-
- <+@><:#278,9360> DoCustomFields(f)
-
- <+@><:#278,9360> else
-
- <+@><:#278,9360> InsertAscendField(f, FALSE);
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> CloseDDE();
-
- <+@><:#278,9360> FreeGlobals();
-
- <+@><:#278,9360> Exit Function;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>reportError:
-
- <+@><:#278,9360> CloseDDE();
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> errorMsg$ = GetGlobalVar$("errorMsg$");
-
- <+@><:#278,9360> Message(errorMsg$, "Ascend Find Name");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> FreeGlobals();
-
- <+@><:#278,9360>End Function
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>Function FreeGlobals()
-
- <+@><:#278,9360> FreeGlobalVar("DDEChannel");
-
- <+@><:#278,9360> FreeGlobalVar("selectedName$");
-
- <+@><:#278,9360> FreeGlobalVar("selectedRecord");
-
- <+@><:#278,9360> FreeGlobalVar("errorMsg$");
-
- <+@> FreeGlobalVar("fields$");
-
- <+@><:#278,9360>End Function
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>' SetErrorMessage() sets the global error message to the given string and returns
-
- <+@><:#278,9360>' the previous value
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>Function SetErrorMessage$(msg$)
-
- <+@><:#278,9360> SetErrorMessage = GetGlobalVar$("errorMsg$");
-
- <+@><:#278,9360> SetGlobalVar("errorMsg$", msg$);
-
- <+@><:#278,9360>End Function
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>' SetupDDE() establishes the DDE connection with Ascend.
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>Function SetupDDE()
-
- <+@><:#278,9360> Defstr DDEChannel, oldMsg$;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Prepare error message
-
- <+@><:#278,9360> oldMsg$ = SetErrorMessage$("Cannot initiate DDE connection with Ascend.");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> SetupDDE = 1;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> DDEChannel = DDEInitiate("Ascend", "Phone");
-
- <+@><:#278,9360> if (DDEChannel = 0) ;
-
- <+@><:#278,9360> SetupDDE = 0;
-
- <+@><:#278,9360> Endif
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> SetGlobalVar("DDEChannel", DDEChannel);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Restore error Message
-
- <+@><:#278,9360> oldMsg$ = SetErrorMessage$(oldMsg$);
-
- <+@><:#278,9360>End Function
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>' CloseDDE() closes the DDE connection with Ascend.
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>Function CloseDDE()
-
- <+@><:#278,9360> Defstr DDEChannel;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> DDEChannel = GetGlobalVar$("DDEChannel");
-
- <+@><:#278,9360> DDETerminate(DDEChannel);
-
- <+@><:#278,9360> SetGlobalVar("DDEChannel", 0);
-
- <+@><:#278,9360>End Function
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@>' InsertAscendField() inserts a DDE link to the desired field and appends an <[>Enter] if
-
- <+@>' specified.
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>Function InsertAscendField(theField, enter)
-
- <+@><:#278,9360> Declare TranslateField$(n);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> Defstr DDEChannel, oldMsg$, selectedRecord;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Prepare error message
-
- <+@><:#278,9360> oldMsg$ = SetErrorMessage$("Can't insert field into document.");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> DDEChannel = GetGlobalVar$("DDEChannel");
-
- <+@><:#278,9360> selectedRecord = GetGlobalVar$("selectedRecord");
-
- <+@><:#278,9360>
-
- <+@><:#556,9360> DDELinks(5, 0, "Ascend", "Phone", strcat$("GetRec:", selectedRecord, ":", TranslateField$(theField)));
-
- <+@> Type("<[>End]");
-
- <+@><:#278,9360>
-
- <+@> if enter then
-
- <+@><:#278,9360> Type("<[>Enter]");
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Restore error message
-
- <+@><:#278,9360> oldMsg$ = SetErrorMessage$(oldMsg$);
-
- <+@><:#278,9360>End Function
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>' DoInsertName() inserts the first and last names properly for the selected name.
-
- <+@><:#278,9360>' If how is 0 then the first name comes first; if how is 1, last name is first.
-
- <+@><:#278,9360>' If withTitle is specified, the person's title will be appended.
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>Function DoInsertName(how, withTitle)
-
- <+@><:#278,9360> Defstr selectedRecord, first$, last$, title$, dde$, DDEChannel, oldMsg$;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Prepare error message
-
- <+@><:#278,9360> oldMsg$ = SetErrorMessage$("Can't insert name into document.");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> DDEChannel = GetGlobalVar$("DDEChannel");
-
- <+@><:#278,9360> selectedRecord = GetGlobalVar$("selectedRecord");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> dde$ = strcat$("GetRec:", selectedRecord, ":");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> first$ = DDEReceive$(DDEChannel, strcat$(dde$, "First"));
-
- <+@><:#278,9360> last$ = DDEReceive$(DDEChannel, strcat$(dde$, "Last"));
-
- <+@><:#278,9360> title$ = DDEReceive$(DDEChannel, strcat$(dde$, "Title"));
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> if how = 0 then ' First name first
-
- <+@><:#278,9360> if first$ <<<;> " " then
-
- <+@><:#278,9360> DDELinks(5, 0, "Ascend", "Phone", strcat$(dde$, "First"));
-
- <+@> Type("<[>End]");
-
- <+@><:#278,9360> if last$ <<<;> " " then
-
- <+@><:#278,9360> Type(" ");
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> if last$ <<<;> " " then
-
- <+@><:#278,9360> DDELinks(5, 0, "Ascend", "Phone", strcat$(dde$, "Last"));
-
- <+@> Type("<[>End]");
-
- <+@> endif
-
- <+@><:#278,9360> else ' Last name first
-
- <+@><:#278,9360> if last$ <<<;> " " then
-
- <+@><:#278,9360> DDELinks(5, 0, "Ascend", "Phone", strcat$(dde$, "Last"));
-
- <+@> Type("<[>End]");
-
- <+@> if first$ <<<;> " " then
-
- <+@><:#278,9360> Type(", ");
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> if first$ <<<;> " " then
-
- <+@><:#278,9360> DDELinks(5, 0, "Ascend", "Phone", strcat$(dde$, "First"));
-
- <+@> Type("<[>End]");
-
- <+@> endif
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> if withTitle and title$ <<<;> " " then
-
- <+@><:#278,9360> Type(", ");
-
- <+@><:#278,9360> DDELinks(5, 0, "Ascend", "Phone", strcat$(dde$, "Title"));
-
- <+@> Type("<[>End]");
-
- <+@> endif
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> Type("<[>Enter]");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Restore error message
-
- <+@><:#278,9360> oldMsg$ = SetErrorMessage$(oldMsg$);
-
- <+@><:#278,9360>End Function
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>' DoInsert() inserts the given field for the currently selected name, followed
-
- <+@><:#278,9360>' by follow$, followed by an end of paragraph mark unless para is 0.
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>Function DoInsert(theField$, follow$, para)
-
- <+@><:#278,9360> Defstr DDEChannel, oldMsg$, selectedRecord, insert$, dde$;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> DoInsert = 0;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Prepare error message
-
- <+@> oldMsg$ = SetErrorMessage$("Can't insert field into document.");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> DDEChannel = GetGlobalVar$("DDEChannel");
-
- <+@><:#278,9360> selectedRecord = GetGlobalVar$("selectedRecord");
-
- <+@><:#278,9360> dde$ = strcat$("GetRec:", selectedRecord, ":", theField$);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> insert$ = DDEReceive$(DDEChannel, dde$);
-
- <+@><:#278,9360> if insert$ <<<;> " " then
-
- <+@><:#278,9360> DoInsert = 1;
-
- <+@><:#278,9360> DDELinks(5, 0, "Ascend", "Phone", dde$);
-
- <+@> Type("<[>End]{follow$}");
-
- <+@><:#278,9360> if para <<<;> 0 then
-
- <+@><:#278,9360> Type("<[>Enter]");
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Restore error message
-
- <+@><:#278,9360> oldMsg$ = SetErrorMessage$(oldMsg$);
-
- <+@><:#278,9360>End Function
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>' DoInsertPhones() inserts the Work and Fax phone numbers, if it finds them, followed
-
- <+@><:#278,9360>' by their description. which tells which numbers to insert: 1=Work, 2=Fax, 3=Both.
-
- <+@><:#278,9360>' Returns 0 if nothing inserted.
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>Function DoInsertPhones(which)
-
- <+@><:#278,9360> Defstr DDEChannel, oldMsg$, selectedRecord, dde$, j, phDesc$, lc$;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> DoInsertPhones = 0;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Prepare error message
-
- <+@><:#278,9360> oldMsg$ = SetErrorMessage$("Can't insert phone numbers into document.");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> DDEChannel = GetGlobalVar$("DDEChannel");
-
- <+@><:#278,9360> selectedRecord = GetGlobalVar$("selectedRecord");
-
- <+@><:#278,9360> dde$ = strcat$("GetRec:", selectedRecord, ":");
-
- <+@><:#278,9360>
-
- <+@> ' Examine the five phone descriptions to find the Work and Fax numbers
-
- <+@><:#278,9360> for j = 1 to 5
-
- <+@><:#556,9360> phDesc$ = DDEReceive$(DDEChannel, strcat$(dde$, "PhDesc", chr$(j + asc("0"))));
-
- <+@><:#278,9360> lc$ = LCASE$(phDesc$);
-
- <+@><:#278,9360> if lc$ = "work" and (which = 1 or which = 3) then
-
- <+@><:#278,9360> if DoInsert(strcat$("Phone", chr$(j + asc("0"))), "", 0) <<<;> 0 then
-
- <+@><:#278,9360> Type(" Work");
-
- <+@><:#278,9360> DoInsertPhones = 1;
-
- <+@><:#278,9360> Type("<[>Enter]");
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> elseif lc$ = "fax" and (which = 2 or which = 3) then
-
- <+@><:#278,9360> if DoInsert(strcat$("Phone", chr$(j + asc("0"))), "", 0) <<<;> 0 then
-
- <+@><:#278,9360> Type(" Fax");
-
- <+@><:#278,9360> DoInsertPhones = 1;
-
- <+@><:#278,9360> Type("<[>Enter]");
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> next
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Restore error message
-
- <+@><:#278,9360> oldMsg$ = SetErrorMessage$(oldMsg$);
-
- <+@><:#278,9360>End Function
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>' DoCustomFields() inserts the proper fields for the customized fields and for
-
- <+@><:#278,9360>' Contact History.
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>Function DoCustomFields(which)
-
- <+@><:#278,9360> Defstr DDEChannel, oldMsg$, selectedRecord, d;
-
- <+@><:#278,9360> Defstr month1$, day1$, year1$, month2$, day2$, year2$;
-
- <+@><:#278,9360> Defstr contact;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Prepare error message
-
- <+@> oldMsg$ = SetErrorMessage$("Can't insert custom fields into document.");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> DDEChannel = GetGlobalVar$("DDEChannel");
-
- <+@><:#278,9360> selectedRecord = GetGlobalVar$("selectedRecord");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> Switch which
-
- <+@><:#278,9360> Case 1 ' Name and Address 1
-
- <+@><:#278,9360> DoInsertName(0, 0);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> d = DoInsert("Address1Line1", "", 1);
-
- <+@><:#278,9360> d = DoInsert("Address1Line2", "", 1);
-
- <+@><:#278,9360> d = DoInsert("City1", ", ", 0);
-
- <+@><:#278,9360> d = DoInsert("State1", " ", 0);
-
- <+@><:#278,9360> d = DoInsert("Zip1", "", 1);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> Case 2 ' Name and Address 2
-
- <+@><:#278,9360> DoInsertName(0, 0);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> d = DoInsert("Address2Line1", "", 1);
-
- <+@><:#278,9360> d = DoInsert("Address2Line2", "", 1);
-
- <+@><:#278,9360> d = DoInsert("City2", ", ", 0);
-
- <+@><:#278,9360> d = DoInsert("State2", " ", 0);
-
- <+@><:#278,9360> d = DoInsert("Zip2", "", 1);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> Case 3 ' Name and Phone 1
-
- <+@><:#278,9360> DoInsertName(0, 0);
-
- <+@><:#278,9360> d = DoInsert("Phone1", "", 1);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> Case 4 ' Name and Phones 1 and 2
-
- <+@><:#278,9360> DoInsertName(0, 0);
-
- <+@><:#278,9360> d = DoInsert("Phone1", "", 1);
-
- <+@><:#278,9360> d = DoInsert("Phone2", "", 1);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> Case 5 ' Full Heading, Address 1
-
- <+@><:#278,9360> DoInsertName(0, 1);
-
- <+@><:#278,9360> d = DoInsert("Company", "", 1);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> d = DoInsert("Address1Line1", "", 1);
-
- <+@><:#278,9360> d = DoInsert("Address1Line2", "", 1);
-
- <+@><:#278,9360> d = DoInsert("City1", ", ", 0);
-
- <+@><:#278,9360> d = DoInsert("State1", " ", 0);
-
- <+@><:#278,9360> d = DoInsert("Zip1", "", 1);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> d = DoInsertPhones(3);
-
- <+@><:#278,9360> Type("<[>Enter]<[>Enter]Dear ");
-
- <+@><:#278,9360> d = DoInsert("Hailing", ",<[>Enter]", 1);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> Case 6 ' Full Heading, Address 2
-
- <+@><:#278,9360> DoInsertName(0, 1);
-
- <+@><:#278,9360> d = DoInsert("Company", "", 1);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> d = DoInsert("Address2Line1", "", 1);
-
- <+@><:#278,9360> d = DoInsert("Address2Line2", "", 1);
-
- <+@><:#278,9360> d = DoInsert("City2", ", ", 0);
-
- <+@><:#278,9360> d = DoInsert("State2", " ", 0);
-
- <+@><:#278,9360> d = DoInsert("Zip2", "", 1);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> d = DoInsertPhones(3);
-
- <+@><:#278,9360> Type("<[>Enter]<[>Enter]Dear ");
-
- <+@><:#278,9360> d = DoInsert("Hailing", ",<[>Enter]", 1);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> Case 7 ' Fax Header Sheet
-
- <+@><:#278,9360> Type("Please Deliver the Following To: ");
-
- <+@><:#278,9360> DoInsertName(0, 1);
-
- <+@><:#278,9360> Type("<[>Enter]Company Name: ");
-
- <+@><:#278,9360> DoInsert("Company", "", 0);
-
- <+@><:#278,9360> Type("<[>Enter]<[>Enter]");
-
- <+@><:#278,9360> Type("Date: ");
-
- <+@><:#278,9360> InsertDate(Today, DMY);
-
- <+@><:#278,9360> Type("<[>Enter]<[>Enter]");
-
- <+@><:#278,9360> Type("Destination FAX Number: ");
-
- <+@><:#278,9360> if DoInsertPhones(2) <<<;> 0 then
-
- <+@><:#278,9360> ' Erase " Fax"
-
- <+@><:#556,9360> Type("<[>ShiftLeft]<[>ShiftLeft]<[>ShiftLeft]<[>ShiftLeft]<[>ShiftLeft]<[>Enter]<[>Enter]");
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> Case 8 ' Name and Contact History
-
- <+@><:#278,9360> FillEdit(8000, "10");
-
- <+@><:#278,9360> FillEdit(8001, "01");
-
- <+@><:#278,9360> FillEdit(8002, "1992");
-
- <+@><:#278,9360> FillEdit(8003, "12");
-
- <+@><:#278,9360> FillEdit(8004, "31");
-
- <+@><:#278,9360> FillEdit(8005, "1997");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> d = DialogBox(".", "ContactHistory");
-
- <+@><:#278,9360> if d = 1 then
-
- <+@><:#278,9360> HourGlass(1);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> month1$ = GetDialogField$(8000);
-
- <+@><:#278,9360> day1$ = GetDialogField$(8001);
-
- <+@><:#278,9360> year1$ = GetDialogField$(8002);
-
- <+@><:#278,9360> month2$ = GetDialogField$(8003);
-
- <+@><:#278,9360> day2$ = GetDialogField$(8004);
-
- <+@><:#278,9360> year2$ = GetDialogField$(8005);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> if Len(month1$) = 1 then
-
- <+@><:#278,9360> month1$ = strcat$("0", month1$);
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> if Len(day1$) = 1 then
-
- <+@><:#278,9360> day1$ = strcat$("0", day1$);
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> if Len(month2$) = 1 then
-
- <+@><:#278,9360> month2$ = strcat$("0", month2$);
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> if Len(day2$) = 1 then
-
- <+@><:#278,9360> day2$ = strcat$("0", day2$);
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> contact$ = strcat$("GetHistory:", selectedRecord, ":");
-
- <+@><:#278,9360> contact$ = strcat$(contact$, month1$, "-", day1$, "-", year1$, ":");
-
- <+@><:#278,9360> contact$ = strcat$(contact$, month2$, "-", day2$, "-", year2$);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> DDELinks(5, 0, "Ascend", "Phone", contact$);
-
- <+@> Type("<[>End]<[>Enter]");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> HourGlass(0);
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> EndSwitch
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Restore error message
-
- <+@><:#278,9360> oldMsg$ = SetErrorMessage$(oldMsg$);
-
- <+@><:#278,9360>End Function
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>' FixName$() fixes selectedName$ by determining if the existing name is a last name or
-
- <+@><:#278,9360>' a company name. If it is a last name, it appends a comma and then the first name to it
-
- <+@><:#278,9360>' and appends the company name, in parentheses, to that.
-
- <+@><:#278,9360>' If it is a company name, it appends the first and last name in parentheses.
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>Function FixName()
-
- <+@><:#278,9360> Defstr DDEChannel, localName$, localRecord, fixLast$, fixFirst$, fixComp$, oldMsg$;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Prepare error message
-
- <+@><:#278,9360> oldMsg$ = SetErrorMessage$("Can't resolve name from Ascend.");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> DDEChannel = GetGlobalVar$("DDEChannel");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> localName$ = GetGlobalVar$("selectedName$");
-
- <+@><:#278,9360> localRecord = GetGlobalVar$("selectedRecord");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> fixLast$ = DDEReceive$(DDEChannel, strcat$("GetRec:", localRecord, ":Last"));
-
- <+@><:#278,9360> fixFirst$ = DDEReceive$(DDEChannel, strcat$("GetRec:", localRecord, ":First"));
-
- <+@><:#278,9360> fixComp$ = DDEReceive$(DDEChannel, strcat$("GetRec:", localRecord, ":Company"));
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> if localName$ = fixLast$ then
-
- <+@><:#278,9360> if fixFirst$ <<<;> " " then
-
- <+@><:#278,9360> localName$ = strcat$(localName$ ", ", fixFirst$);
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> if fixComp$ <<<;> " " then
-
- <+@><:#278,9360> localName$ = strcat$(localName$, " (", fixComp$, ")");
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> elseif localName$ = fixComp$ then
-
- <+@><:#278,9360> if fixFirst$ <<<;> " " then
-
- <+@><:#278,9360> localName$ = strcat$(localName$, " (", fixFirst$);
-
- <+@><:#278,9360> if fixLast$ <<<;> " " then
-
- <+@><:#278,9360> localName$ = strcat$(localName$, " ", fixLast$);
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> localName$ = strcat$(localName$, ")");
-
- <+@><:#278,9360> elseif fixLast$ <<<;> " " then
-
- <+@><:#278,9360> localName$ = strcat$(localName$, " (", fixLast$, ")");
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> SetGlobalVar("selectedName$", localName$);
-
- <+@><:#278,9360> SetGlobalVar("selectedRecord", localRecord);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Restore error message
-
- <+@><:#278,9360> oldMsg$ = SetErrorMessage$(oldMsg$);
-
- <+@><:#278,9360>End Function
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>' GetAscendField$() gets the given field for the currently selected name
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>Function GetAscendField$(theField$)
-
- <+@><:#278,9360> Defstr DDEChannel, selectedRecord;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> DDEChannel = GetGlobalVar$("DDEChannel");
-
- <+@><:#278,9360> selectedRecord = GetGlobalVar$("selectedRecord");
-
- <+@><:#278,9360>
-
- <+@><:#556,9360> GetAscendField$ = DDEReceive$(DDEChannel, strcat$("GetRec:", selectedRecord, ":", theField$));
-
- <+@><:#278,9360>End Function
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>' TranslateField$() takes the number of the field name in the dialog list and returns
-
- <+@><:#278,9360>' Ascend's DDE name for the field.
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>Function TranslateField$(n)
-
- <+@><:#278,9360> TranslateField$ = "";
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> if n << 9 or n = 59 then
-
- <+@><:#278,9360> Exit Function;
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> switch n
-
- <+@><:#278,9360> case 9 TranslateField$ = "Last";
-
- <+@><:#278,9360> case 10 TranslateField$ = "First";
-
- <+@><:#278,9360> case 11 TranslateField$ = "Company";
-
- <+@><:#278,9360> case 12 TranslateField$ = "Title";
-
- <+@><:#278,9360> case 13 TranslateField$ = "Department";
-
- <+@><:#278,9360> case 14 TranslateField$ = "Assistant";
-
- <+@><:#278,9360> case 15 TranslateField$ = "EmailAddress";
-
- <+@><:#278,9360> case 16 TranslateField$ = "Salutation";
-
- <+@><:#278,9360> case 17 TranslateField$ = "Hailing";
-
- <+@><:#278,9360> case 18 TranslateField$ = "Category";
-
- <+@><:#278,9360> case 19 TranslateField$ = "AddDesc1";
-
- <+@><:#278,9360> case 20 TranslateField$ = "Address1Line1";
-
- <+@><:#278,9360> case 21 TranslateField$ = "Address1Line2";
-
- <+@><:#278,9360> case 22 TranslateField$ = "City1";
-
- <+@><:#278,9360> case 23 TranslateField$ = "State1";
-
- <+@><:#278,9360> case 24 TranslateField$ = "Zip1";
-
- <+@><:#278,9360> case 25 TranslateField$ = "Country1";
-
- <+@><:#278,9360> case 26 TranslateField$ = "AddDesc2";
-
- <+@><:#278,9360> case 27 TranslateField$ = "Address2Line1";
-
- <+@><:#278,9360> case 28 TranslateField$ = "Address2Line2";
-
- <+@><:#278,9360> case 29 TranslateField$ = "City2";
-
- <+@><:#278,9360> case 30 TranslateField$ = "State2";
-
- <+@><:#278,9360> case 31 TranslateField$ = "Zip2";
-
- <+@><:#278,9360> case 32 TranslateField$ = "Country2";
-
- <+@><:#278,9360> case 33 TranslateField$ = "PhDesc1";
-
- <+@><:#278,9360> case 34 TranslateField$ = "Phone1";
-
- <+@><:#278,9360> case 35 TranslateField$ = "Ext1";
-
- <+@><:#278,9360> case 36 TranslateField$ = "PhDesc2";
-
- <+@><:#278,9360> case 37 TranslateField$ = "Phone2";
-
- <+@><:#278,9360> case 38 TranslateField$ = "Ext2";
-
- <+@><:#278,9360> case 39 TranslateField$ = "PhDesc3";
-
- <+@><:#278,9360> case 40 TranslateField$ = "Phone3";
-
- <+@><:#278,9360> case 41 TranslateField$ = "Ext3";
-
- <+@><:#278,9360> case 42 TranslateField$ = "PhDesc4";
-
- <+@><:#278,9360> case 43 TranslateField$ = "Phone4";
-
- <+@><:#278,9360> case 44 TranslateField$ = "Ext4";
-
- <+@><:#278,9360> case 45 TranslateField$ = "PhDesc5";
-
- <+@><:#278,9360> case 46 TranslateField$ = "Phone5";
-
- <+@><:#278,9360> case 47 TranslateField$ = "Ext5";
-
- <+@><:#278,9360> case 48 TranslateField$ = "Notes";
-
- <+@><:#278,9360> case 49 TranslateField$ = "Keys1";
-
- <+@><:#278,9360> case 50 TranslateField$ = "Keys2";
-
- <+@><:#278,9360> case 51 TranslateField$ = "Keys3";
-
- <+@><:#278,9360> case 52 TranslateField$ = "Keys4";
-
- <+@><:#278,9360> case 53 TranslateField$ = "Keys5";
-
- <+@><:#278,9360> case 54 TranslateField$ = "Keys6";
-
- <+@><:#278,9360> case 55 TranslateField$ = "VIP";
-
- <+@><:#278,9360> case 56 TranslateField$ = "DateEntered";
-
- <+@><:#278,9360> case 57 TranslateField$ = "LastContact";
-
- <+@><:#278,9360> case 58 TranslateField$ = "NextContact";
-
- <+@><:#278,9360> endswitch
-
- <+@><:#278,9360>End Function
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@>' InitializeFieldsArray() updates the global array "fields$" and puts each item in the list
-
- <+@><:#278,9360>' box for the dialog.
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>Function InitializeFieldsArray()
-
- <+@><:#278,9360> Defstr j, oldMsg$;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Prepare error message
-
- <+@><:#278,9360> oldMsg$ = SetErrorMessage$("Can't create list box for dialog");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> HourGlass(1);
-
- <+@><:#278,9360> StatusBarMsg("Examining fields . . . ");
-
- <+@><:#278,9360>
-
- <+@> SetGlobalArray("fields$", 1, "Custom Fields #1 (Name and Address 1)");
-
- <+@> SetGlobalArray("fields$", 2, "Custom Fields #2 (Name and Address 2)");
-
- <+@> SetGlobalArray("fields$", 3, "Custom Fields #3 (Name and Phone 1)");
-
- <+@> SetGlobalArray("fields$", 4, "Custom Fields #4 (Name and Phone 1 and 2)");
-
- <+@> SetGlobalArray("fields$", 5, "Custom Fields #5 (Full Heading, Address 1)");
-
- <+@> SetGlobalArray("fields$", 6, "Custom Fields #6 (Full Heading, Address 2)");
-
- <+@> SetGlobalArray("fields$", 7, "Custom Fields #7 (Fax Header Sheet)");
-
- <+@> SetGlobalArray("fields$", 8, "Custom Fields #8 (Name and Contact History)");
-
- <+@> SetGlobalArray("fields$", 9, strcat$("Last Name (", GetAscendField$(TranslateField$(9)), ")"));
-
- <+@> SetGlobalArray("fields$", 10, strcat$("First Name (", GetAscendField$(TranslateField$(10)), ")"));
-
- <+@> SetGlobalArray("fields$", 11, strcat$("Company (", GetAscendField$(TranslateField$(11)), ")"));
-
- <+@> SetGlobalArray("fields$", 12, strcat$("Title (", GetAscendField$(TranslateField$(12)), ")"));
-
- <+@> SetGlobalArray("fields$", 13, strcat$("Department (", GetAscendField$(TranslateField$(13)), ")"));
-
- <+@> SetGlobalArray("fields$", 14, strcat$("Assistant (", GetAscendField$(TranslateField$(14)), ")"));
-
- <+@> SetGlobalArray("fields$", 15, strcat$("E-mail Address (", GetAscendField$(TranslateField$(15)), ")"));
-
- <+@> SetGlobalArray("fields$", 16, strcat$("Salutation (", GetAscendField$(TranslateField$(16)), ")"));
-
- <+@> SetGlobalArray("fields$", 17, strcat$("Hailing (", GetAscendField$(TranslateField$(17)), ")"));
-
- <+@> SetGlobalArray("fields$", 18, strcat$("Category (", GetAscendField$(TranslateField$(18)), ")"));
-
- <+@> SetGlobalArray("fields$", 19, strcat$("Address 1 Description (",
-
- <+@> GetAscendField$(TranslateField$(19)), ")"));
-
- <+@> SetGlobalArray("fields$", 20, strcat$("Address 1, Line 1 (",
-
- <+@> GetAscendField$(TranslateField$(20)), ")"));
-
- <+@> SetGlobalArray("fields$", 21, strcat$("Address 1, Line 2 (",
-
- <+@> GetAscendField$(TranslateField$(21)), ")"));
-
- <+@> SetGlobalArray("fields$", 22, strcat$("Address 1, City (", GetAscendField$(TranslateField$(22)), ")"));
-
- <+@> SetGlobalArray("fields$", 23, strcat$("Address 1, State (", GetAscendField$(TranslateField$(23)), ")"));
-
- <+@> SetGlobalArray("fields$", 24, strcat$("Address 1, Zip Code (",
-
- <+@><:#556,9360> GetAscendField$(TranslateField$(24)), ")"));
-
- <+@> SetGlobalArray("fields$", 25, strcat$("Address 1, Country (",
-
- <+@><:#556,9360> GetAscendField$(TranslateField$(25)), ")"));
-
- <+@> SetGlobalArray("fields$", 26, strcat$("Address 2 Description (",
-
- <+@><:#556,9360> GetAscendField$(TranslateField$(26)), ")"));
-
- <+@> SetGlobalArray("fields$", 27, strcat$("Address 2, Line 1 (",
-
- <+@> GetAscendField$(TranslateField$(27)), ")"));
-
- <+@> SetGlobalArray("fields$", 28, strcat$("Address 2, Line 2 (",
-
- <+@> GetAscendField$(TranslateField$(28)), ")"));
-
- <+@> SetGlobalArray("fields$", 29, strcat$("Address 2, City (", GetAscendField$(TranslateField$(29)), ")"));
-
- <+@> SetGlobalArray("fields$", 30, strcat$("Address 2, State (", GetAscendField$(TranslateField$(30)), ")"));
-
- <+@> SetGlobalArray("fields$", 31, strcat$("Address 2, Zip Code (",
-
- <+@><:#556,9360> GetAscendField$(TranslateField$(31)), ")"));
-
- <+@> SetGlobalArray("fields$", 32, strcat$("Address 2, Country (",
-
- <+@><:#556,9360> GetAscendField$(TranslateField$(32)), ")"));
-
- <+@> SetGlobalArray("fields$", 33, strcat$("Phone Description 1 (",
-
- <+@><:#556,9360> GetAscendField$(TranslateField$(33)), ")"));
-
- <+@> SetGlobalArray("fields$", 34, strcat$("Phone Number 1 (", GetAscendField$(TranslateField$(34)), ")"));
-
- <+@> SetGlobalArray("fields$", 35, strcat$("Extension 1 (", GetAscendField$(TranslateField$(35)), ")"));
-
- <+@> SetGlobalArray("fields$", 36, strcat$("Phone Description 2 (",
-
- <+@><:#556,9360> GetAscendField$(TranslateField$(36)), ")"));
-
- <+@> SetGlobalArray("fields$", 37, strcat$("Phone Number 2 (", GetAscendField$(TranslateField$(37)), ")"));
-
- <+@> SetGlobalArray("fields$", 38, strcat$("Extension 2 (", GetAscendField$(TranslateField$(38)), ")"));
-
- <+@> SetGlobalArray("fields$", 39, strcat$("Phone Description 3 (",
-
- <+@><:#556,9360> GetAscendField$(TranslateField$(39)), ")"));
-
- <+@> SetGlobalArray("fields$", 40, strcat$("Phone Number 3 (", GetAscendField$(TranslateField$(40)), ")"));
-
- <+@> SetGlobalArray("fields$", 41, strcat$("Extension 3 (", GetAscendField$(TranslateField$(41)), ")"));
-
- <+@> SetGlobalArray("fields$", 42, strcat$("Phone Description 4 (",
-
- <+@><:#556,9360> GetAscendField$(TranslateField$(42)), ")"));
-
- <+@> SetGlobalArray("fields$", 43, strcat$("Phone Number 4 (", GetAscendField$(TranslateField$(43)), ")"));
-
- <+@> SetGlobalArray("fields$", 44, strcat$("Extension 4 (", GetAscendField$(TranslateField$(44)), ")"));
-
- <+@> SetGlobalArray("fields$", 45, strcat$("Phone Description 5 (",
-
- <+@><:#556,9360> GetAscendField$(TranslateField$(45)), ")"));
-
- <+@> SetGlobalArray("fields$", 46, strcat$("Phone Number 5 (", GetAscendField$(TranslateField$(46)), ")"));
-
- <+@> SetGlobalArray("fields$", 47, strcat$("Extension 5 (", GetAscendField$(TranslateField$(47)), ")"));
-
- <+@> SetGlobalArray("fields$", 48, "Notes ( . . . )");
-
- <+@> SetGlobalArray("fields$", 49, strcat$("Key Code 1 (", GetAscendField$(TranslateField$(49)), ")"));
-
- <+@> SetGlobalArray("fields$", 50, strcat$("Key Code 2 (", GetAscendField$(TranslateField$(50)), ")"));
-
- <+@> SetGlobalArray("fields$", 51, strcat$("Key Code 3 (", GetAscendField$(TranslateField$(51)), ")"));
-
- <+@> SetGlobalArray("fields$", 52, strcat$("Key Code 4 (", GetAscendField$(TranslateField$(52)), ")"));
-
- <+@> SetGlobalArray("fields$", 53, strcat$("Key Code 5 (", GetAscendField$(TranslateField$(53)), ")"));
-
- <+@> SetGlobalArray("fields$", 54, strcat$("Key Code 6 (", GetAscendField$(TranslateField$(54)), ")"));
-
- <+@> SetGlobalArray("fields$", 55, strcat$("VIP (", GetAscendField$(TranslateField$(55)), ")"));
-
- <+@> SetGlobalArray("fields$", 56, strcat$("Date Entered (", GetAscendField$(TranslateField$(56)), ")"));
-
- <+@> SetGlobalArray("fields$", 57, strcat$("Last Contact (", GetAscendField$(TranslateField$(57)), ")"));
-
- <+@> SetGlobalArray("fields$", 58, strcat$("Next Contact (", GetAscendField$(TranslateField$(58)), ")"));
-
- <+@> SetGlobalArray("fields$", 59, "Contact History . . . ");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> For j = 1 to 59
-
- <+@> FillList(GetGlobalArray$("fields$", j));
-
- <+@><:#278,9360> next
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> StatusBarMsg("");
-
- <+@><:#278,9360> HourGlass(0);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Restore error message
-
- <+@><:#278,9360> oldMsg$ = SetErrorMessage$(oldMsg$);
-
- <+@><:#278,9360>End Function
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>' AscendGetFieldDialog() presents the user with a dialog allowing the user to select
-
- <+@><:#278,9360>' from all of Ascend's Address and Phone fields.
-
- <+@><:#278,9360>' It returns the index to the (local) array for the item that was selected. This number
-
- <+@><:#278,9360>' can be used with the function TranslateFieldName$() to get the field identifier
-
- <+@><:#278,9360>' recognized by Ascend.
-
- <+@><:#278,9360>' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
-
- <+@><:#278,9360>Function AscendGetFieldDialog(theName)
-
- <+@><:#278,9360> Defstr oldMsg$, result, j, theField$;
-
- <+@><:#278,9360> Dim AscendFields$(59);
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> AscendGetFieldDialog = -1;
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Prepare error message
-
- <+@><:#278,9360> oldMsg$ = SetErrorMessage$("Error with Ascend Names dialog.");
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> InitializeFieldsArray();
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> result = DialogBox(".", "AscendInsertField");
-
- <+@><:#278,9360> if result = 0 or result = 2 then ' user cancelled
-
- <+@><:#278,9360> goto done;
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360>
-
- <+@><:#278,9360> ' Figure out the number of the item they chose
-
- <+@><:#278,9360> theField$ = GetDialogField$(9000);
-
- <+@><:#278,9360> for j = 1 to 59
-
- <+@> if theField$ = GetGlobalArray$("fields$", j) then
-
- <+@><:#278,9360> AscendGetFieldDialog = j;
-
- <+@><:#278,9360> break;
-
- <+@><:#278,9360> endif
-
- <+@><:#278,9360> next
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>done:
-
- <+@><:#278,9360> ' Restore error message
-
- <+@><:#278,9360> oldMsg$ = SetErrorMessage$(oldMsg$);
-
- <+@><:#278,9360>End Function
-
- <+@><:#278,9360>
-
- <+@><:#278,9360>
-
- <:#278,9360>DIALOG AscendInsertField
-
- <:#278,9360>-2134900736 3 47 47 243 157 "" "" "Ascend Insert Field"
-
- <:#278,9360>FONT 8 "Helv"
-
- <:#278,9360>198 3 40 14 1 1342373889 "button" "OK" 0
-
- <:#278,9360>198 20 40 14 2 1342373888 "button" "Cancel" 0
-
- <:#278,9360>4 3 190 149 9000 1352728577 "listbox" "" 0
-
- <:#278,9360>END DIALOG
-
- <:#278,9360>
-
- <:#278,9360>DIALOG ContactHistory
-
- <:#278,9360>-2134900736 16 94 79 199 43 "" "" "Ascend Contact History"
-
- <:#278,9360>FONT 8 "Helv"
-
- <:#278,9360>154 5 40 14 1 1342373889 "button" "OK" 0
-
- <:#278,9360>154 24 40 14 2 1342373888 "button" "Cancel" 0
-
- <:#278,9360>4 1 71 37 20 1342308359 "button" "Starting Date" 0
-
- <:#278,9360>8 12 20 10 1000 1342177280 "static" "Month" 0
-
- <:#278,9360>15 22 13 12 8000 1350631552 "edit" "" 0
-
- <:#278,9360>32 12 15 10 1001 1342177280 "static" "Day" 0
-
- <:#278,9360>32 22 13 12 8001 1350631552 "edit" "" 0
-
- <:#278,9360>49 12 18 10 1002 1342177280 "static" "Year" 0
-
- <:#278,9360>49 22 22 12 8002 1350631552 "edit" "" 0
-
- <:#278,9360>79 1 71 37 21 1342308359 "button" "Ending Date" 0
-
- <:#278,9360>83 12 20 10 1003 1342177280 "static" "Month" 0
-
- <:#278,9360>90 22 13 12 8003 1350631552 "edit" "" 0
-
- <:#278,9360>107 12 15 10 1004 1342177280 "static" "Day" 0
-
- <:#278,9360>107 22 13 12 8004 1350631552 "edit" "" 0
-
- <:#278,9360>125 12 18 10 1005 1342177280 "static" "Year" 0
-
- <:#278,9360>125 22 22 12 8005 1350631552 "edit" "" 0
-
- <:#278,9360>END DIALOG
-
- >
-
- [Embedded]
- 00045857
- >
- [macsum] 17
- Main 0 0 7 11
- FreeGlobals 962 0 1 87
- SetErrorMessage$ 1093 1 2 102
- SetupDDE 1179 0 3 113
- CloseDDE 1422 0 2 138
- InsertAscendField 1509 2 4 153
- DoInsertName 1847 2 8 183
- DoInsert 2878 3 6 243
- DoInsertPhones 3278 1 8 277
- DoCustomFields 4190 1 13 319
- FixName 7057 0 8 456
- GetAscendField$ 7946 1 3 504
- TranslateField$ 8101 1 1 521
- InitializeFieldsArray 11240 0 3 590
- AscendGetFieldDialog 17847 1 6 696
- AscendInsertField 18332 0 -1 727
- ContactHistory 18568 0 -1 735
- [macse]
- 14 Main
- 0 271 "DDEChannel" 1
- 0 271 "selectedName$" 1
- 0 271 "selectedRecord" 1
- 0 271 "errorMsg$" 1
- 0 271 "fields$" 59
- 0 264 "errorMsg$" "An error occurred."
- 20 00000863
- 16 SetupDDE
- 13
- 5 0
- 18 0
- 11 00000311
- 16 FreeGlobals
- 0 3 "Can't initiate DDE communications with Ascend." "DDE error"
- 6 0
- 15
- 9
- 0 265 "DDEChannel"
- 13
- 8 2
- 0 10 "{2}" "GetActiveRecord"
- 13
- 8 5
- 6 5
- 5 0
- 18 0
- 11 00000492
- 16 CloseDDE
- 0 295
- 13
- 0 16 [X] "ASCAMI1.SMM!Main"
- 13
- 8 4
- 16 "{4}"
- 6 0
- 15
- 9
- 0 264 "selectedRecord" "{5}"
- 0 16 "GetRec:" "{5}" ":Last"
- 13
- 0 10 "{2}" [X]
- 13
- 8 6
- 16 FixName
- 16 AscendGetFieldDialog "{5}"
- 13
- 8 1
- 6 1
- 5 0
- 18 5
- 11 00000703
- 16 CloseDDE
- 16 FreeGlobals
- 6 0
- 15
- 9
- 6 1
- 5 9
- 18 5
- 6 1
- 5 59
- 18 0
- 1 2
- 11 00000792
- 16 DoCustomFields "{1}"
- 10 00000822
- 16 InsertAscendField "{1}" 0
- 16 CloseDDE
- 16 FreeGlobals
- 6 0
- 15
- 9
- 16 CloseDDE
- 0 265 "errorMsg$"
- 13
- 8 3
- 0 3 "{3}" "Ascend Find Name"
- 16 FreeGlobals
- 6 0
- 15
- 9
- 14 FreeGlobals
- 0 266 "DDEChannel"
- 0 266 "selectedName$"
- 0 266 "selectedRecord"
- 0 266 "errorMsg$"
- 0 266 "fields$"
- 6 0
- 15
- 9
- 14 SetErrorMessage$
- 0 265 "errorMsg$"
- 13
- 8 2
- 0 264 "errorMsg$" "{0}"
- 6 1
- 15
- 9
- 14 SetupDDE
- 16 SetErrorMessage$ "Cannot initiate DDE connection with Ascend."
- 13
- 8 2
- 5 1
- 8 0
- 0 8 "Ascend" "Phone"
- 13
- 8 1
- 6 1
- 5 0
- 18 0
- 11 00000169
- 5 0
- 8 0
- 0 264 "DDEChannel" "{1}"
- 16 SetErrorMessage$ "{2}"
- 13
- 8 2
- 6 0
- 15
- 9
- 14 CloseDDE
- 0 265 "DDEChannel"
- 13
- 8 1
- 0 9 "{1}"
- 0 264 "DDEChannel" 0
- 6 0
- 15
- 9
- 14 InsertAscendField
- 16 SetErrorMessage$ "Can't insert field into document."
- 13
- 8 4
- 0 265 "DDEChannel"
- 13
- 8 3
- 0 265 "selectedRecord"
- 13
- 8 5
- 16 TranslateField$ "{0}"
- 13
- 0 16 "GetRec:" "{5}" ":" [X]
- 13
- 2 115 1 5 0 "Ascend" "Phone" [X]
- 0 6 "[35]"
- 6 1
- 11 00000290
- 0 6 "[13]"
- 16 SetErrorMessage$ "{4}"
- 13
- 8 4
- 6 2
- 15
- 9
- 14 DoInsertName
- 16 SetErrorMessage$ "Can't insert name into document."
- 13
- 8 9
- 0 265 "DDEChannel"
- 13
- 8 8
- 0 265 "selectedRecord"
- 13
- 8 3
- 0 16 "GetRec:" "{3}" ":"
- 13
- 8 7
- 0 16 "{7}" "First"
- 13
- 0 10 "{8}" [X]
- 13
- 8 4
- 0 16 "{7}" "Last"
- 13
- 0 10 "{8}" [X]
- 13
- 8 5
- 0 16 "{7}" "Title"
- 13
- 0 10 "{8}" [X]
- 13
- 8 6
- 6 0
- 5 0
- 18 0
- 11 00000608
- 6 4
- 7 " "
- 18 1
- 11 00000495
- 0 16 "{7}" "First"
- 13
- 2 115 1 5 0 "Ascend" "Phone" [X]
- 0 6 "[35]"
- 6 5
- 7 " "
- 18 1
- 11 00000495
- 0 6 " "
- 6 5
- 7 " "
- 18 1
- 11 00000595
- 0 16 "{7}" "Last"
- 13
- 2 115 1 5 0 "Ascend" "Phone" [X]
- 0 6 "[35]"
- 10 00000850
- 6 5
- 7 " "
- 18 1
- 11 00000749
- 0 16 "{7}" "Last"
- 13
- 2 115 1 5 0 "Ascend" "Phone" [X]
- 0 6 "[35]"
- 6 4
- 7 " "
- 18 1
- 11 00000749
- 0 6 ", "
- 6 4
- 7 " "
- 18 1
- 11 00000850
- 0 16 "{7}" "First"
- 13
- 2 115 1 5 0 "Ascend" "Phone" [X]
- 0 6 "[35]"
- 6 1
- 6 6
- 7 " "
- 18 1
- 1 1
- 11 00000971
- 0 6 ", "
- 0 16 "{7}" "Title"
- 13
- 2 115 1 5 0 "Ascend" "Phone" [X]
- 0 6 "[35]"
- 0 6 "[13]"
- 16 SetErrorMessage$ "{9}"
- 13
- 8 9
- 6 2
- 15
- 9
- 14 DoInsert
- 5 0
- 8 3
- 16 SetErrorMessage$ "Can't insert field into document."
- 13
- 8 5
- 0 265 "DDEChannel"
- 13
- 8 4
- 0 265 "selectedRecord"
- 13
- 8 6
- 0 16 "GetRec:" "{6}" ":" "{0}"
- 13
- 8 8
- 0 10 "{4}" "{8}"
- 13
- 8 7
- 6 7
- 7 " "
- 18 1
- 11 00000352
- 5 1
- 8 3
- 2 115 1 5 0 "Ascend" "Phone" "{8}"
- 0 6 "[35]{1}"
- 6 2
- 5 0
- 18 1
- 11 00000352
- 0 6 "[13]"
- 16 SetErrorMessage$ "{5}"
- 13
- 8 5
- 6 3
- 15
- 9
- 14 DoInsertPhones
- 5 0
- 8 1
- 16 SetErrorMessage$ "Can't insert phone numbers into document."
- 13
- 8 3
- 0 265 "DDEChannel"
- 13
- 8 2
- 0 265 "selectedRecord"
- 13
- 8 4
- 0 16 "GetRec:" "{4}" ":"
- 13
- 8 5
- 5 1
- 8 6
- 5 5
- 6 6
- 18 2
- 12 00000285
- 10 00000864
- 5 1
- 6 6
- 3 0
- 8 6
- 10 00000210
- 6 6
- 0 40 "0"
- 13
- 3 0
- 0 39 [X]
- 13
- 0 16 "{5}" "PhDesc" [X]
- 13
- 0 10 "{2}" [X]
- 13
- 8 7
- 0 17 "{7}"
- 13
- 8 8
- 6 8
- 7 "work"
- 18 0
- 6 0
- 5 1
- 18 0
- 6 0
- 5 3
- 18 0
- 1 2
- 1 1
- 11 00000632
- 6 6
- 0 40 "0"
- 13
- 3 0
- 0 39 [X]
- 13
- 0 16 "Phone" [X]
- 13
- 16 DoInsert [X] "" 0
- 13
- 5 0
- 18 1
- 11 00000619
- 0 6 " Work"
- 5 1
- 8 1
- 0 6 "[13]"
- 10 00000851
- 6 8
- 7 "fax"
- 18 0
- 6 0
- 5 2
- 18 0
- 6 0
- 5 3
- 18 0
- 1 2
- 1 1
- 11 00000851
- 6 6
- 0 40 "0"
- 13
- 3 0
- 0 39 [X]
- 13
- 0 16 "Phone" [X]
- 13
- 16 DoInsert [X] "" 0
- 13
- 5 0
- 18 1
- 11 00000851
- 0 6 " Fax"
- 5 1
- 8 1
- 0 6 "[13]"
- 10 00000252
- 16 SetErrorMessage$ "{3}"
- 13
- 8 3
- 6 1
- 15
- 9
- 14 DoCustomFields
- 16 SetErrorMessage$ "Can't insert custom fields into document."
- 13
- 8 3
- 0 265 "DDEChannel"
- 13
- 8 2
- 0 265 "selectedRecord"
- 13
- 8 4
- 5 1
- 6 0
- 18 0
- 11 00000412
- 16 DoInsertName 0 0
- 16 DoInsert "Address1Line1" "" 1
- 13
- 8 5
- 16 DoInsert "Address1Line2" "" 1
- 13
- 8 5
- 16 DoInsert "City1" ", " 0
- 13
- 8 5
- 16 DoInsert "State1" " " 0
- 13
- 8 5
- 16 DoInsert "Zip1" "" 1
- 13
- 8 5
- 10 00002819
- 5 2
- 6 0
- 18 0
- 11 00000669
- 16 DoInsertName 0 0
- 16 DoInsert "Address2Line1" "" 1
- 13
- 8 5
- 16 DoInsert "Address2Line2" "" 1
- 13
- 8 5
- 16 DoInsert "City2" ", " 0
- 13
- 8 5
- 16 DoInsert "State2" " " 0
- 13
- 8 5
- 16 DoInsert "Zip2" "" 1
- 13
- 8 5
- 10 00002819
- 5 3
- 6 0
- 18 0
- 11 00000768
- 16 DoInsertName 0 0
- 16 DoInsert "Phone1" "" 1
- 13
- 8 5
- 10 00002819
- 5 4
- 6 0
- 18 0
- 11 00000903
- 16 DoInsertName 0 0
- 16 DoInsert "Phone1" "" 1
- 13
- 8 5
- 16 DoInsert "Phone2" "" 1
- 13
- 8 5
- 10 00002819
- 5 5
- 6 0
- 18 0
- 11 00001290
- 16 DoInsertName 0 1
- 16 DoInsert "Company" "" 1
- 13
- 8 5
- 16 DoInsert "Address1Line1" "" 1
- 13
- 8 5
- 16 DoInsert "Address1Line2" "" 1
- 13
- 8 5
- 16 DoInsert "City1" ", " 0
- 13
- 8 5
- 16 DoInsert "State1" " " 0
- 13
- 8 5
- 16 DoInsert "Zip1" "" 1
- 13
- 8 5
- 16 DoInsertPhones 3
- 13
- 8 5
- 0 6 "[13][13]Dear "
- 16 DoInsert "Hailing" ",[13]" 1
- 13
- 8 5
- 10 00002819
- 5 6
- 6 0
- 18 0
- 11 00001677
- 16 DoInsertName 0 1
- 16 DoInsert "Company" "" 1
- 13
- 8 5
- 16 DoInsert "Address2Line1" "" 1
- 13
- 8 5
- 16 DoInsert "Address2Line2" "" 1
- 13
- 8 5
- 16 DoInsert "City2" ", " 0
- 13
- 8 5
- 16 DoInsert "State2" " " 0
- 13
- 8 5
- 16 DoInsert "Zip2" "" 1
- 13
- 8 5
- 16 DoInsertPhones 3
- 13
- 8 5
- 0 6 "[13][13]Dear "
- 16 DoInsert "Hailing" ",[13]" 1
- 13
- 8 5
- 10 00002819
- 5 7
- 6 0
- 18 0
- 11 00002025
- 0 6 "Please Deliver the Following To: "
- 16 DoInsertName 0 1
- 0 6 "[13]Company Name: "
- 16 DoInsert "Company" "" 0
- 0 6 "[13][13]"
- 0 6 "Date: "
- 2 165 1 2 3
- 0 6 "[13][13]"
- 0 6 "Destination FAX Number: "
- 16 DoInsertPhones 2
- 13
- 5 0
- 18 1
- 11 00002012
- 0 6 "[4133][4133][4133][4133][4133][13][13]"
- 10 00002819
- 5 8
- 6 0
- 18 0
- 11 00002819
- 0 31 8000 "10"
- 0 31 8001 "01"
- 0 31 8002 "1992"
- 0 31 8003 "12"
- 0 31 8004 "31"
- 0 31 8005 "1997"
- 0 26 "." "ContactHistory"
- 13
- 8 5
- 6 5
- 5 1
- 18 0
- 11 00002819
- 0 296 1
- 0 27 8000
- 13
- 8 6
- 0 27 8001
- 13
- 8 7
- 0 27 8002
- 13
- 8 8
- 0 27 8003
- 13
- 8 9
- 0 27 8004
- 13
- 8 10
- 0 27 8005
- 13
- 8 11
- 0 14 "{6}"
- 13
- 5 1
- 18 0
- 11 00002415
- 0 16 "0" "{6}"
- 13
- 8 6
- 0 14 "{7}"
- 13
- 5 1
- 18 0
- 11 00002480
- 0 16 "0" "{7}"
- 13
- 8 7
- 0 14 "{9}"
- 13
- 5 1
- 18 0
- 11 00002545
- 0 16 "0" "{9}"
- 13
- 8 9
- 0 14 "{10}"
- 13
- 5 1
- 18 0
- 11 00002613
- 0 16 "0" "{10}"
- 13
- 8 10
- 0 16 "GetHistory:" "{4}" ":"
- 13
- 8 13
- 0 16 "{13}" "{6}" "-" "{7}" "-" "{8}" ":"
- 13
- 8 13
- 0 16 "{13}" "{9}" "-" "{10}" "-" "{11}"
- 13
- 8 13
- 2 115 1 5 0 "Ascend" "Phone" "{13}"
- 0 6 "[35][13]"
- 0 296 0
- 16 SetErrorMessage$ "{3}"
- 13
- 8 3
- 6 1
- 15
- 9
- 14 FixName
- 16 SetErrorMessage$ "Can't resolve name from Ascend."
- 13
- 8 7
- 0 265 "DDEChannel"
- 13
- 8 1
- 0 265 "selectedName$"
- 13
- 8 2
- 0 265 "selectedRecord"
- 13
- 8 3
- 0 16 "GetRec:" "{3}" ":Last"
- 13
- 0 10 "{1}" [X]
- 13
- 8 4
- 0 16 "GetRec:" "{3}" ":First"
- 13
- 0 10 "{1}" [X]
- 13
- 8 5
- 0 16 "GetRec:" "{3}" ":Company"
- 13
- 0 10 "{1}" [X]
- 13
- 8 6
- 6 2
- 6 4
- 18 0
- 11 00000523
- 6 5
- 7 " "
- 18 1
- 11 00000443
- 0 16 "{2}" ", " "{5}"
- 13
- 8 2
- 6 6
- 7 " "
- 18 1
- 11 00000510
- 0 16 "{2}" " (" "{6}" ")"
- 13
- 8 2
- 10 00000782
- 6 2
- 6 6
- 18 0
- 11 00000782
- 6 5
- 7 " "
- 18 1
- 11 00000715
- 0 16 "{2}" " (" "{5}"
- 13
- 8 2
- 6 4
- 7 " "
- 18 1
- 11 00000677
- 0 16 "{2}" " " "{4}"
- 13
- 8 2
- 0 16 "{2}" ")"
- 13
- 8 2
- 10 00000782
- 6 4
- 7 " "
- 18 1
- 11 00000782
- 0 16 "{2}" " (" "{4}" ")"
- 13
- 8 2
- 0 264 "selectedName$" "{2}"
- 0 264 "selectedRecord" "{3}"
- 16 SetErrorMessage$ "{7}"
- 13
- 8 7
- 6 0
- 15
- 9
- 14 GetAscendField$
- 0 265 "DDEChannel"
- 13
- 8 2
- 0 265 "selectedRecord"
- 13
- 8 3
- 0 16 "GetRec:" "{3}" ":" "{0}"
- 13
- 0 10 "{2}" [X]
- 13
- 8 1
- 6 1
- 15
- 9
- 14 TranslateField$
- 7 ""
- 8 1
- 6 0
- 5 9
- 18 5
- 6 0
- 5 59
- 18 0
- 1 2
- 11 00000094
- 6 1
- 15
- 9
- 5 9
- 6 0
- 18 0
- 11 00000151
- 7 "Last"
- 8 1
- 10 00003127
- 5 10
- 6 0
- 18 0
- 11 00000210
- 7 "First"
- 8 1
- 10 00003127
- 5 11
- 6 0
- 18 0
- 11 00000271
- 7 "Company"
- 8 1
- 10 00003127
- 5 12
- 6 0
- 18 0
- 11 00000330
- 7 "Title"
- 8 1
- 10 00003127
- 5 13
- 6 0
- 18 0
- 11 00000394
- 7 "Department"
- 8 1
- 10 00003127
- 5 14
- 6 0
- 18 0
- 11 00000457
- 7 "Assistant"
- 8 1
- 10 00003127
- 5 15
- 6 0
- 18 0
- 11 00000523
- 7 "EmailAddress"
- 8 1
- 10 00003127
- 5 16
- 6 0
- 18 0
- 11 00000587
- 7 "Salutation"
- 8 1
- 10 00003127
- 5 17
- 6 0
- 18 0
- 11 00000648
- 7 "Hailing"
- 8 1
- 10 00003127
- 5 18
- 6 0
- 18 0
- 11 00000710
- 7 "Category"
- 8 1
- 10 00003127
- 5 19
- 6 0
- 18 0
- 11 00000772
- 7 "AddDesc1"
- 8 1
- 10 00003127
- 5 20
- 6 0
- 18 0
- 11 00000839
- 7 "Address1Line1"
- 8 1
- 10 00003127
- 5 21
- 6 0
- 18 0
- 11 00000906
- 7 "Address1Line2"
- 8 1
- 10 00003127
- 5 22
- 6 0
- 18 0
- 11 00000965
- 7 "City1"
- 8 1
- 10 00003127
- 5 23
- 6 0
- 18 0
- 11 00001025
- 7 "State1"
- 8 1
- 10 00003127
- 5 24
- 6 0
- 18 0
- 11 00001083
- 7 "Zip1"
- 8 1
- 10 00003127
- 5 25
- 6 0
- 18 0
- 11 00001145
- 7 "Country1"
- 8 1
- 10 00003127
- 5 26
- 6 0
- 18 0
- 11 00001207
- 7 "AddDesc2"
- 8 1
- 10 00003127
- 5 27
- 6 0
- 18 0
- 11 00001274
- 7 "Address2Line1"
- 8 1
- 10 00003127
- 5 28
- 6 0
- 18 0
- 11 00001341
- 7 "Address2Line2"
- 8 1
- 10 00003127
- 5 29
- 6 0
- 18 0
- 11 00001400
- 7 "City2"
- 8 1
- 10 00003127
- 5 30
- 6 0
- 18 0
- 11 00001460
- 7 "State2"
- 8 1
- 10 00003127
- 5 31
- 6 0
- 18 0
- 11 00001518
- 7 "Zip2"
- 8 1
- 10 00003127
- 5 32
- 6 0
- 18 0
- 11 00001580
- 7 "Country2"
- 8 1
- 10 00003127
- 5 33
- 6 0
- 18 0
- 11 00001641
- 7 "PhDesc1"
- 8 1
- 10 00003127
- 5 34
- 6 0
- 18 0
- 11 00001701
- 7 "Phone1"
- 8 1
- 10 00003127
- 5 35
- 6 0
- 18 0
- 11 00001759
- 7 "Ext1"
- 8 1
- 10 00003127
- 5 36
- 6 0
- 18 0
- 11 00001820
- 7 "PhDesc2"
- 8 1
- 10 00003127
- 5 37
- 6 0
- 18 0
- 11 00001880
- 7 "Phone2"
- 8 1
- 10 00003127
- 5 38
- 6 0
- 18 0
- 11 00001938
- 7 "Ext2"
- 8 1
- 10 00003127
- 5 39
- 6 0
- 18 0
- 11 00001999
- 7 "PhDesc3"
- 8 1
- 10 00003127
- 5 40
- 6 0
- 18 0
- 11 00002059
- 7 "Phone3"
- 8 1
- 10 00003127
- 5 41
- 6 0
- 18 0
- 11 00002117
- 7 "Ext3"
- 8 1
- 10 00003127
- 5 42
- 6 0
- 18 0
- 11 00002178
- 7 "PhDesc4"
- 8 1
- 10 00003127
- 5 43
- 6 0
- 18 0
- 11 00002238
- 7 "Phone4"
- 8 1
- 10 00003127
- 5 44
- 6 0
- 18 0
- 11 00002296
- 7 "Ext4"
- 8 1
- 10 00003127
- 5 45
- 6 0
- 18 0
- 11 00002357
- 7 "PhDesc5"
- 8 1
- 10 00003127
- 5 46
- 6 0
- 18 0
- 11 00002417
- 7 "Phone5"
- 8 1
- 10 00003127
- 5 47
- 6 0
- 18 0
- 11 00002475
- 7 "Ext5"
- 8 1
- 10 00003127
- 5 48
- 6 0
- 18 0
- 11 00002534
- 7 "Notes"
- 8 1
- 10 00003127
- 5 49
- 6 0
- 18 0
- 11 00002593
- 7 "Keys1"
- 8 1
- 10 00003127
- 5 50
- 6 0
- 18 0
- 11 00002652
- 7 "Keys2"
- 8 1
- 10 00003127
- 5 51
- 6 0
- 18 0
- 11 00002711
- 7 "Keys3"
- 8 1
- 10 00003127
- 5 52
- 6 0
- 18 0
- 11 00002770
- 7 "Keys4"
- 8 1
- 10 00003127
- 5 53
- 6 0
- 18 0
- 11 00002829
- 7 "Keys5"
- 8 1
- 10 00003127
- 5 54
- 6 0
- 18 0
- 11 00002888
- 7 "Keys6"
- 8 1
- 10 00003127
- 5 55
- 6 0
- 18 0
- 11 00002945
- 7 "VIP"
- 8 1
- 10 00003127
- 5 56
- 6 0
- 18 0
- 11 00003010
- 7 "DateEntered"
- 8 1
- 10 00003127
- 5 57
- 6 0
- 18 0
- 11 00003075
- 7 "LastContact"
- 8 1
- 10 00003127
- 5 58
- 6 0
- 18 0
- 11 00003127
- 7 "NextContact"
- 8 1
- 6 1
- 15
- 9
- 14 InitializeFieldsArray
- 16 SetErrorMessage$ "Can't create list box for dialog"
- 13
- 8 2
- 0 296 1
- 0 789 "Examining fields . . . "
- 0 272 "fields$" 1 "Custom Fields #1 (Name and Address 1)"
- 0 272 "fields$" 2 "Custom Fields #2 (Name and Address 2)"
- 0 272 "fields$" 3 "Custom Fields #3 (Name and Phone 1)"
- 0 272 "fields$" 4 "Custom Fields #4 (Name and Phone 1 and 2)"
- 0 272 "fields$" 5 "Custom Fields #5 (Full Heading, Address 1)"
- 0 272 "fields$" 6 "Custom Fields #6 (Full Heading, Address 2)"
- 0 272 "fields$" 7 "Custom Fields #7 (Fax Header Sheet)"
- 0 272 "fields$" 8 "Custom Fields #8 (Name and Contact History)"
- 16 TranslateField$ 9
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Last Name (" [X] ")"
- 13
- 0 272 "fields$" 9 [X]
- 16 TranslateField$ 10
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "First Name (" [X] ")"
- 13
- 0 272 "fields$" 10 [X]
- 16 TranslateField$ 11
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Company (" [X] ")"
- 13
- 0 272 "fields$" 11 [X]
- 16 TranslateField$ 12
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Title (" [X] ")"
- 13
- 0 272 "fields$" 12 [X]
- 16 TranslateField$ 13
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Department (" [X] ")"
- 13
- 0 272 "fields$" 13 [X]
- 16 TranslateField$ 14
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Assistant (" [X] ")"
- 13
- 0 272 "fields$" 14 [X]
- 16 TranslateField$ 15
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "E-mail Address (" [X] ")"
- 13
- 0 272 "fields$" 15 [X]
- 16 TranslateField$ 16
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Salutation (" [X] ")"
- 13
- 0 272 "fields$" 16 [X]
- 16 TranslateField$ 17
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Hailing (" [X] ")"
- 13
- 0 272 "fields$" 17 [X]
- 16 TranslateField$ 18
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Category (" [X] ")"
- 13
- 0 272 "fields$" 18 [X]
- 16 TranslateField$ 19
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Address 1 Description (" [X] ")"
- 13
- 0 272 "fields$" 19 [X]
- 16 TranslateField$ 20
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Address 1, Line 1 (" [X] ")"
- 13
- 0 272 "fields$" 20 [X]
- 16 TranslateField$ 21
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Address 1, Line 2 (" [X] ")"
- 13
- 0 272 "fields$" 21 [X]
- 16 TranslateField$ 22
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Address 1, City (" [X] ")"
- 13
- 0 272 "fields$" 22 [X]
- 16 TranslateField$ 23
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Address 1, State (" [X] ")"
- 13
- 0 272 "fields$" 23 [X]
- 16 TranslateField$ 24
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Address 1, Zip Code (" [X] ")"
- 13
- 0 272 "fields$" 24 [X]
- 16 TranslateField$ 25
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Address 1, Country (" [X] ")"
- 13
- 0 272 "fields$" 25 [X]
- 16 TranslateField$ 26
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Address 2 Description (" [X] ")"
- 13
- 0 272 "fields$" 26 [X]
- 16 TranslateField$ 27
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Address 2, Line 1 (" [X] ")"
- 13
- 0 272 "fields$" 27 [X]
- 16 TranslateField$ 28
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Address 2, Line 2 (" [X] ")"
- 13
- 0 272 "fields$" 28 [X]
- 16 TranslateField$ 29
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Address 2, City (" [X] ")"
- 13
- 0 272 "fields$" 29 [X]
- 16 TranslateField$ 30
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Address 2, State (" [X] ")"
- 13
- 0 272 "fields$" 30 [X]
- 16 TranslateField$ 31
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Address 2, Zip Code (" [X] ")"
- 13
- 0 272 "fields$" 31 [X]
- 16 TranslateField$ 32
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Address 2, Country (" [X] ")"
- 13
- 0 272 "fields$" 32 [X]
- 16 TranslateField$ 33
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Phone Description 1 (" [X] ")"
- 13
- 0 272 "fields$" 33 [X]
- 16 TranslateField$ 34
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Phone Number 1 (" [X] ")"
- 13
- 0 272 "fields$" 34 [X]
- 16 TranslateField$ 35
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Extension 1 (" [X] ")"
- 13
- 0 272 "fields$" 35 [X]
- 16 TranslateField$ 36
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Phone Description 2 (" [X] ")"
- 13
- 0 272 "fields$" 36 [X]
- 16 TranslateField$ 37
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Phone Number 2 (" [X] ")"
- 13
- 0 272 "fields$" 37 [X]
- 16 TranslateField$ 38
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Extension 2 (" [X] ")"
- 13
- 0 272 "fields$" 38 [X]
- 16 TranslateField$ 39
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Phone Description 3 (" [X] ")"
- 13
- 0 272 "fields$" 39 [X]
- 16 TranslateField$ 40
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Phone Number 3 (" [X] ")"
- 13
- 0 272 "fields$" 40 [X]
- 16 TranslateField$ 41
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Extension 3 (" [X] ")"
- 13
- 0 272 "fields$" 41 [X]
- 16 TranslateField$ 42
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Phone Description 4 (" [X] ")"
- 13
- 0 272 "fields$" 42 [X]
- 16 TranslateField$ 43
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Phone Number 4 (" [X] ")"
- 13
- 0 272 "fields$" 43 [X]
- 16 TranslateField$ 44
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Extension 4 (" [X] ")"
- 13
- 0 272 "fields$" 44 [X]
- 16 TranslateField$ 45
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Phone Description 5 (" [X] ")"
- 13
- 0 272 "fields$" 45 [X]
- 16 TranslateField$ 46
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Phone Number 5 (" [X] ")"
- 13
- 0 272 "fields$" 46 [X]
- 16 TranslateField$ 47
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Extension 5 (" [X] ")"
- 13
- 0 272 "fields$" 47 [X]
- 0 272 "fields$" 48 "Notes ( . . . )"
- 16 TranslateField$ 49
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Key Code 1 (" [X] ")"
- 13
- 0 272 "fields$" 49 [X]
- 16 TranslateField$ 50
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Key Code 2 (" [X] ")"
- 13
- 0 272 "fields$" 50 [X]
- 16 TranslateField$ 51
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Key Code 3 (" [X] ")"
- 13
- 0 272 "fields$" 51 [X]
- 16 TranslateField$ 52
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Key Code 4 (" [X] ")"
- 13
- 0 272 "fields$" 52 [X]
- 16 TranslateField$ 53
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Key Code 5 (" [X] ")"
- 13
- 0 272 "fields$" 53 [X]
- 16 TranslateField$ 54
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Key Code 6 (" [X] ")"
- 13
- 0 272 "fields$" 54 [X]
- 16 TranslateField$ 55
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "VIP (" [X] ")"
- 13
- 0 272 "fields$" 55 [X]
- 16 TranslateField$ 56
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Date Entered (" [X] ")"
- 13
- 0 272 "fields$" 56 [X]
- 16 TranslateField$ 57
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Last Contact (" [X] ")"
- 13
- 0 272 "fields$" 57 [X]
- 16 TranslateField$ 58
- 13
- 16 GetAscendField$ [X]
- 13
- 0 16 "Next Contact (" [X] ")"
- 13
- 0 272 "fields$" 58 [X]
- 0 272 "fields$" 59 "Contact History . . . "
- 5 1
- 8 1
- 5 59
- 6 1
- 18 2
- 12 00006490
- 10 00006540
- 5 1
- 6 1
- 3 0
- 8 1
- 10 00006414
- 0 273 "fields$" "{1}"
- 13
- 0 25 [X]
- 10 00006457
- 0 789 ""
- 0 296 0
- 16 SetErrorMessage$ "{2}"
- 13
- 8 2
- 6 0
- 15
- 9
- 14 AscendGetFieldDialog
- 5 59
- 21 6 [X]
- 5 -1
- 8 1
- 16 SetErrorMessage$ "Error with Ascend Names dialog."
- 13
- 8 2
- 16 InitializeFieldsArray
- 0 26 "." "AscendInsertField"
- 13
- 8 3
- 6 3
- 5 0
- 18 0
- 6 3
- 5 2
- 18 0
- 1 2
- 11 00000244
- 10 00000437
- 0 27 9000
- 13
- 8 5
- 5 1
- 8 4
- 5 59
- 6 4
- 18 2
- 12 00000350
- 10 00000437
- 5 1
- 6 4
- 3 0
- 8 4
- 10 00000274
- 6 5
- 0 273 "fields$" "{4}"
- 13
- 18 0
- 11 00000424
- 6 4
- 8 1
- 10 00000437
- 10 00000317
- 16 SetErrorMessage$ "{2}"
- 13
- 8 2
- 6 1
- 15
- 9
- DIALOG AscendInsertField
- -2134900736 3 47 47 243 157 "" "" "Ascend Insert Field"
- FONT 8 "Helv"
- 198 3 40 14 1 1342373889 "button" "OK" 0
- 198 20 40 14 2 1342373888 "button" "Cancel" 0
- 4 3 190 149 9000 1352728577 "listbox" "" 0
- DIALOG ContactHistory
- -2134900736 16 94 79 199 43 "" "" "Ascend Contact History"
- FONT 8 "Helv"
- 154 5 40 14 1 1342373889 "button" "OK" 0
- 154 24 40 14 2 1342373888 "button" "Cancel" 0
- 4 1 71 37 20 1342308359 "button" "Starting Date" 0
- 8 12 20 10 1000 1342177280 "static" "Month" 0
- 15 22 13 12 8000 1350631552 "edit" "" 0
- 32 12 15 10 1001 1342177280 "static" "Day" 0
- 32 22 13 12 8001 1350631552 "edit" "" 0
- 49 12 18 10 1002 1342177280 "static" "Year" 0
- 49 22 22 12 8002 1350631552 "edit" "" 0
- 79 1 71 37 21 1342308359 "button" "Ending Date" 0
- 83 12 20 10 1003 1342177280 "static" "Month" 0
- 90 22 13 12 8003 1350631552 "edit" "" 0
- 107 12 15 10 1004 1342177280 "static" "Day" 0
- 107 22 13 12 8004 1350631552 "edit" "" 0
- 125 12 18 10 1005 1342177280 "static" "Year" 0
- 125 22 22 12 8005 1350631552 "edit" "" 0
- 00045882
-