home *** CD-ROM | disk | FTP | other *** search
INI File | 1991-08-19 | 24.0 KB | 1,941 lines |
- [ver]
- 4
- [sty]
- ~macro.sty
- [files]
- [charset]
- 82
- ANSI (Windows, IBM CP 1252)
- [revisions]
- 0
- [prn]
- PostScript Printer
- [lang]
- 1
- [desc]
- Type in an area code to find out geographical and chronological information about it.
- Lotus WPD Technical Support
- Intermediate
- Global Variables, ProfileString
- Autorun
- 682670058
- 16
- 679900805
- 51
- 7
- 1705
- 9931
- 31
- 34
-
-
-
-
-
-
- 0
- [fopts]
- 0
- 1
- 0
- 0
- [lnopts]
- 2
- Body Text
- 1
- [docopts]
- 5
- 2
- [lay]
- Standard
- 513
- [rght]
- 15840
- 12240
- 1
- 720
- 1080
- 1
- 1440
- 1440
- 2
- 1
- 0
- 1
- 1
- 2
- 1
- 720
- 10800
- 14
- 1
- 720
- 1
- 1440
- 1
- 2160
- 1
- 2880
- 1
- 3600
- 1
- 4320
- 1
- 5040
- 1
- 5760
- 1
- 6480
- 1
- 7200
- 1
- 7920
- 1
- 8640
- 1
- 9360
- 1
- 10080
- [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
- 0
- 1
- 360
- 1440
- 0
- 1
- 0
- 1
- 1
- 0
- 1
- 1440
- 10800
- 0
- [txt]
- @Header@<:X3,0;GetDocInfo$(1)>ACODES.SMM<:X~3,0;GetDocInfo$(1)>
-
- @Header@<:X3,0;Description>Type in an area code to find out geographical and chronological information about it.<:X~3,0;Description>
-
- @Header@By: Todd E. Fuder
-
- @Header@<:X3,0;EditDate %Dd>Wednesday, August 7, 1991<:X~3,0;EditDate %Dd> at
- <:X3,0;EditDate %T6>11:29 am<:X~3,0;EditDate %T6>
-
- @Header@
- >
- [frght]
- [lyfrm]
- 1
- 13248
- 0
- 14760
- 12240
- 15840
- 0
- 1
- 3
- 1 0 0 0 0 0 0
- 0
- 0
- 2
- [frmlay]
- 15840
- 12240
- 1
- 1440
- 360
- 1
- 14940
- 1440
- 0
- 1
- 0
- 1
- 1
- 0
- 1
- 1440
- 10800
- 0
- [txt]
- @Header@Revision Number <:X3,0;NumEdits>11<:X~3,0;NumEdits>
-
- @Header@<:P10,0,Page > of <:X3,16384;NumPages>7<:X~3,16384;NumPages>
-
- >
- [elay]
- [l1]
- 0
- [edoc]
- @Function@FUNCTION AreaCodes()
-
- ONERROR toasties
-
- ONCANCEL toasties
-
- define GetActiveWindow() DllCall("user,GetActiveWindow,H")
-
- define SetWindowText() DllCall("user,SetWindowText,IHC", %1, %2)
-
- define TitleBarMsg() SetWindowText(GetActiveWindow(), %1)
-
- define GetWindowText() DllCall("user,GetWindowText,HHFH", %1, %2, %3)
-
- DEFSTR id, Line
-
- HourGlass(1)
-
- CALL ExitCodes()
-
- MacFile = GetRunningMacroFile$()
-
- MacPath = GetMacPath$()
-
- TitleBarMsg("Adding ""ACodes"" to the default Ami Pro menu bar.")
-
- AddMenu(1, "&ACodes")
-
- AddMenuItem(1, "&ACodes", "&Find Area Code...", "{MacFile}!Searchem()", "Look up data related to a specified area code.")
-
- AddMenuItem(1, "&ACodes", "Set &Defaults...", "{MacFile}!Defaults()", "Set your time zone")
-
- AddMenuItem(1, "&ACodes", "-", "", "")
-
- AddMenuItem(1, "&ACodes", "E&xit Area Codes", "{MacFile}!ExitCodes()", "Remove the ACodes menu.")
-
- IF ("" = FindFirst$("{MacPath}ACODES.INI", 0))
-
- HourGlass(0)
-
- Message("Cannot find {MacPath}ACODES.INI, please place in your Macros directory.")
-
- CALL ExitCodes()
-
- GoTo toasties
-
- ENDIF
-
- MaxRecords = GetProfileString$("Header", "MaxRecords", "{MacPath}ACODES.INI")
-
- IF MaxRecords = "" OR MaxRecords = 0
-
- MaxRecords = 1
-
- ENDIF
-
- OurZone = GetProfileString$("Header", "OurZone", "{MacPath}ACODES.INI")
-
- AllocGlobalVar("Data", MaxRecords)
-
- AllocGlobalVar("OurZone", 1)
-
- AllocGlobalVar("MaxRecords", 1)
-
- SetGlobalVar("OurZone", OurZone)
-
- SetGlobalVar("MaxRecords", MaxRecords)
-
- IF 0 != Assign(&id, fopen("{MacPath}ACODES.INI", "r"))
-
- WHILE "DATA" != UCASE$(MID$(Assign(&Line, fgets$(id)), 2, 4))
-
- WEND
-
- ELSE
-
- Message("Could not open {MacPath}ACODES.INI!")
-
- CALL ExitCodes()
-
- GoTo toasties
-
- ENDIF
-
- StatusBarMsg("Reading area code information from data file, please wait...")
-
- FOR I = 1 to MaxRecords
-
- Line = fgets$(id)
-
- SetGlobalArray("Data", I, strfield$(Line, 2, "="))
-
- NEXT
-
- fclose(id)
-
- HourGlass(0)
-
- StatusBarMsg("")
-
- toasties:
-
- HourGlass(0)
-
- TitleBarMsg("")
-
- TitleBarMsg("Ami Pro")
-
- StatusBarMsg("")
-
- @Function@END FUNCTION
-
-
-
- @Function@FUNCTION Defaults()
-
- FillEdit(9500, GetGlobalVar$("OurZone"))
-
- FillEdit(9500, "Atlantic")
-
- FillEdit(9500, "Eastern")
-
- FillEdit(9500, "Central")
-
- FillEdit(9500, "Mountain")
-
- FillEdit(9500, "Pacific")
-
- FillEdit(9500, "Alaskan")
-
- FillEdit(9500, "Hawaiian")
-
- FillEdit(9500, "ZE12")
-
- FillEdit(9500, "ZE11")
-
- FillEdit(9500, "EAT")
-
- FillEdit(9500, "CAT")
-
- FillEdit(9500, "WAT")
-
- FillEdit(9500, "ZE7")
-
- FillEdit(9500, "ZE6")
-
- FillEdit(9500, "ZE5")
-
- FillEdit(9500, "ZE4")
-
- FillEdit(9500, "ZE3")
-
- FillEdit(9500, "ZE2")
-
- FillEdit(9500, "CET")
-
- FillEdit(9500, "GMT")
-
- FillEdit(9500, "ZW1")
-
- FillEdit(9500, "ZW2")
-
- FillEdit(9500, "ZW3")
-
- FillEdit(9500, "ZW4")
-
- MacPath = GetMacPath$()
-
- Box = DialogBox(".", "DefaultBox")
-
- IF Box = -1
-
- Message("Could not find dialog box; Exiting function.")
-
- EXIT FUNCTION
-
- ELSEIF Box = 0
-
- EXIT FUNCTION
-
- ENDIF
-
- OurZone = GetDialogField$(9500)
-
- WriteProfileString("Header", "OurZone", OurZone, "{MacPath}ACODES.INI")
-
- SetGlobalVar("OurZone", OurZone)
-
- @Function@END FUNCTION
-
-
-
- @Function@FUNCTION ExitCodes()
-
- FreeGlobalVar("MaxRecords")
-
- FreeGlobalVar("Data")
-
- FreeGlobalVar("OurZone")
-
- DeleteMenu(1, "&ACodes")
-
- @Function@END FUNCTION
-
-
-
- @Function@FUNCTION Searchem()
-
- onerror toasties
-
- oncancel toasties
-
- HourGlass(1)
-
- StatusBarMsg("Setting up for area code data query...")
-
- MaxRecords = GetGlobalVar$("MaxRecords")
-
- DIM Data(MaxRecords)
-
- FOR I = 1 to MaxRecords
-
- Data(I) = GetGlobalArray$("Data", I)
-
- NEXT
-
- LookupAreaCodes:
-
- DIM FoundData(MaxRecords)
-
- Found = 0
-
- OurZone = GetGlobalVar$("OurZone")
-
- HourGlass(0)
-
- AreaCodeBox = DialogBox("." "AreaCodeData")
-
- HourGlass(1)
-
- StatusBarMsg("")
-
- IF AreaCodeBox = -1
-
- Message("Can't find the dialog box. Exiting macro!")
-
- CALL ExitMacro()
-
- GoTo toasties
-
- ELSEIF AreaCodeBox = 0
-
- GoTo toasties
-
- ENDIF
-
- Acode = GetDialogField$(8000)
-
- Ndex = 1
-
- ArrayInsert(&Data, 1, "")
-
- WHILE Ndex != 0
-
- Ndex = ArraySearch(&Data, Acode, 2, "~", Ndex)
-
- IF Ndex != 0
-
- Found = Found + 1
-
- FoundData(Found) = Data(Ndex)
-
- ENDIF
-
- WEND
-
- IF Found <;> 1
-
- DIM foundline(found)
-
- FOR I = 1 to Found
-
- FoundData(I) = strcat$(strfield$(FoundData(I), 1, "~") "/" strfield$(FoundData(I), 2, "~") "/" strfield$(FoundData(I), 3, "~") "/" strfield$(FoundData(I), 4, "~"))
-
- FillEdit(9000, FoundData(I))
-
- NEXT
-
- HourGlass(0)
-
- FillEdit(8500, "{Found} locations found:")
-
- FoundBox = DialogBox(".", "FoundDataBox")
-
- HourGlass(1)
-
- IF FoundBox = -1
-
- HourGlass(0)
-
- Message("Can't open the dialog box! Exiting macro.")
-
- HourGlass(1)
-
- GoTo toasties
-
- ELSEIF FoundBox = 0
-
- GoTo LookupAreaCodes
-
- ENDIF
-
- DataLine = GetDialogField$(9000)
-
- FOR I = 1 to Found
-
- IF DataLine = FoundData(I)
-
- Ccode = strfield$(DataLine, 1, "/")
-
- Acode = strfield$(DataLine, 2, "/")
-
- Location = strfield$(strfield$(DataLine, 3, "/"), 1, "!")
-
- City = strfield$(strfield$(DataLine, 3, "/"), 2, "!")
-
- TimeZone = strfield$(DataLine, 4, "/")
-
- ENDIF
-
- NEXT
-
- ELSEIF Found = 0
-
- Message("Sorry, but I could find no matching records.")
-
- GoTo LookupAreaCodes
-
- ELSE
-
- Ccode = strfield$(FoundData(1), 1, "~")
-
- Acode = strfield$(FoundData(1), 2, "~")
-
- Location = strfield$(strfield$(FoundData(1), 3, "~"), 1, "!")
-
- City = strfield$(strfield$(FoundData(1), 3, "~"), 2, "!")
-
- TimeZone = strfield$(FoundData(1), 4, "~")
-
- ENDIF
-
- TimeDiff = CALL FindTimeDiff(TimeZone, OurZone)
-
- IF TimeDiff <;> 24 OR TimeDiff << -24
-
- HourGlass(0)
-
- StatusBarMsg("Time zone conflict.")
-
- IF TimeDiff = 383
-
- Message("Both your time zone and the location's time zone are incorrect.")
-
- ELSEIF TimeDiff <;> 128
-
- Message("Your time zone is incorrect.")
-
- ELSEIF TimeDiff <;> 100
-
- Message("The location's time zone is incorrect.")
-
- ENDIF
-
- StatusBarMsg("")
-
- HourGlass(1)
-
- GoTo toasties
-
- ENDIF
-
- OurTime = FormatTime$(Now(), 1)
-
- OurDate = FormatDate$(Now(), "d")
-
- TheirTime = FormatTime$((Now() + (3600 * TimeDiff)), 1)
-
- IF (TheirTime << OurTime) AND (TimeDiff <;> 0)
-
- TheirDate = FormatDate$((86400 + Now()), "d")
-
- ELSE
-
- TheirDate = OurDate
-
- ENDIF
-
- OurTime = FormatTime$(Now(), 6)
-
- TheirTime = FormatTime$((Now() + (3600 * TimeDiff)), 6)
-
- IF TimeDiff << 0
-
- TimeDiff = -1 * TimeDiff
-
- IF TimeDiff != 1
-
- s = "s"
-
- ELSE s = ""
-
- ENDIF
-
- TimeDiffString="{TimeDiff} hour{s} behind you."
-
- ELSEIF TimeDiff <;> 0
-
- IF TimeDiff != 1
-
- s = "s"
-
- ELSE s = ""
-
- ENDIF
-
- TimeDiffString="{TimeDiff} hour{s} ahead of you."
-
- ELSE
-
- TimeDiffString="the same time as yours."
-
- ENDIF
-
- IF strfield$(City, 1, ",") != "" AND strfield$(City, 2, ",") != ""
-
- ctvar = "Cities are"
-
- ELSE
-
- ctvar = "City is"
-
- ENDIF
-
- FillEdit(8010 "Country code: {Ccode}")
-
- FillEdit(8011 "Area/City code: {Acode}")
-
- FillEdit(8012 "{Location}")
-
- FillEdit(8013 "Major {ctvar} {City}")
-
- FillEdit(8014 "Time zone: {TimeZone}, {TimeDiffString}")
-
- IF TimeDiff = 0
-
- FillEdit(8015, "The current time is")
-
- FillEdit(8016, "{OurTime} on {OurDate}")
-
- ELSE
-
- FillEdit(8015 "Your time is {OurTime} on {OurDate}")
-
- FillEdit(8016 "Their time is {TheirTime} on {TheirDate}")
-
- ENDIF
-
- HourGlass(0)
-
- ShowBox = DialogBox(".", "ShowDataBox")
-
- HourGlass(1)
-
- IF ShowBox = -1
-
- Message("Cannot find dialog box! Exiting macro.")
-
- EXIT FUNCTION
-
- ENDIF
-
- GoTo LookupAreaCodes
-
- toasties:
-
- HourGlass(0)
-
- @Function@END FUNCTION
-
-
-
- @Function@FUNCTION FindTimeDiff(TimeZone, OurZone)
-
- onerror toasties
-
- oncancel toasties
-
- OurZone = UCASE$(OurZone)
-
- TimeZone = UCASE$(TimeZone)
-
- SWITCH OurZone
-
- CASE "GMT"
-
- OurZone = 0
-
- CASE "ZW1"
-
- OurZone = 1
-
- CASE "ZW2"
-
- OurZone = 2
-
- CASE "ZW3"
-
- OurZone = 3
-
- CASE "ZW4"
-
- OurZone = 4
-
- CASE "ATLANTIC"
-
- OurZone = 5
-
- CASE "EASTERN"
-
- OurZone = 6
-
- CASE "CENTRAL"
-
- OurZone = 7
-
- CASE "MOUNTAIN"
-
- OurZone = 8
-
- CASE "PACIFIC"
-
- OurZone = 9
-
- CASE "ALASKAN"
-
- OurZone = 10
-
- CASE "HAWAIIAN"
-
- OurZone = 12
-
- CASE "ZE12"
-
- OurZone = -12
-
- CASE "ZE11"
-
- OurZone = -11
-
- CASE "EAT"
-
- OurZone = -10
-
- CASE "CAT"
-
- OurZone = -9
-
- CASE "WAT"
-
- OurZone = -8
-
- CASE "ZE6"
-
- OurZone = -6
-
- CASE "ZE5"
-
- OurZone = -5
-
- CASE "ZE4"
-
- OurZone = -4
-
- CASE "ZE3"
-
- OurZone = -3
-
- CASE "ZE2"
-
- OurZone = -2
-
- CASE "CET"
-
- OurZone = -1
-
- default
-
- OurZone = 255
-
- ENDSWITCH
-
- SWITCH TimeZone
-
- CASE "GMT"
-
- Timezone = 0
-
- CASE "ZW1"
-
- Timezone = 1
-
- CASE "ZW2"
-
- Timezone = 2
-
- CASE "ZW3"
-
- Timezone = 3
-
- CASE "ZW4"
-
- Timezone = 4
-
- CASE "ATLANTIC"
-
- Timezone = 5
-
- CASE "EASTERN"
-
- Timezone = 6
-
- CASE "CENTRAL"
-
- Timezone = 7
-
- CASE "MOUNTAIN"
-
- Timezone = 8
-
- CASE "PACIFIC"
-
- Timezone = 9
-
- CASE "ALASKAN"
-
- Timezone = 10
-
- CASE "HAWAIIAN"
-
- Timezone = 12
-
- CASE "ZE12"
-
- Timezone = -12
-
- CASE "ZE11"
-
- Timezone = -11
-
- CASE "EAT"
-
- Timezone = -10
-
- CASE "CAT"
-
- Timezone = -9
-
- CASE "WAT"
-
- Timezone = -8
-
- CASE "ZE6"
-
- Timezone = -6
-
- CASE "ZE5"
-
- Timezone = -5
-
- CASE "ZE4"
-
- Timezone = -4
-
- CASE "ZE3"
-
- Timezone = -3
-
- CASE "ZE2"
-
- Timezone = -2
-
- CASE "CET"
-
- Timezone = -1
-
- default
-
- TimeZone = 128
-
- ENDSWITCH
-
- TimeDiff = OurZone - TimeZone
-
- return TimeDiff
-
- toasties:
-
- HourGlass(0)
-
- @Function@END FUNCTION
-
-
-
- @Function@DIALOG FoundDataBox
-
- -2134376448 4 52 72 248 90 "" "" "Items Found"
-
- FONT 6 "Helv"
-
- 8 12 188 72 9000 1352728579 "listbox" "" 0
-
- 204 4 40 14 1 1342242817 "button" "OK" 0
-
- 204 20 40 14 2 1342242816 "button" "Cancel" 0
-
- 8 4 72 8 8500 1342177280 "static" "locations found:" 0
-
- @Function@END DIALOG
-
-
-
- @Function@DIALOG AreaCodeData
-
- -2134376448 4 132 56 140 38 "" "" "Area Codes"
-
- FONT 6 "Helv"
-
- 66 12 16 12 8000 1350631552 "edit" "" 0
-
- 96 4 40 14 1 1342373889 "button" "OK" 0
-
- 96 20 40 14 2 1342373888 "button" "Cancel" 0
-
- 6 14 56 8 1000 1342177280 "static" "&Area/City code:" 0
-
- @Function@END DIALOG
-
-
-
- @Function@DIALOG ShowDataBox
-
- -2134376448 10 98 52 210 114 "" "" "Area Code Information"
-
- FONT 6 "Helv"
-
- 166 4 40 14 1 1342373889 "button" "OK" 0
-
- 6 8 70 8 8010 1342177280 "static" "Country code: xxx" 0
-
- 84 8 70 8 8011 1342177280 "static" "Area/City code: xxx" 0
-
- 8 34 194 8 8012 1342177281 "static" "Geographical location goes here" 0
-
- 8 48 194 8 8013 1342177281 "static" "Major cities are: major cities go here" 0
-
- 4 20 202 42 10 1342177287 "button" "Geographical information" 0
-
- 4 62 202 48 11 1342177287 "button" "Time information" 0
-
- 8 74 194 8 8014 1342177281 "static" "Time zone: XXXXXXXX, 99 hours ahead of you." 0
-
- 8 86 194 8 8015 1342177281 "static" "Your time: 12:00pm on Thursday, December 14, 1991" 0
-
- 8 98 194 8 8016 1342177281 "static" "Your time: 12:00pm, Their time: 12:00pm" 0
-
- @Function@END DIALOG
-
-
-
- @Function@DIALOG DefaultBox
-
- -2134376448 4 120 48 142 38 "" "" "Area Codes Defaults"
-
- FONT 6 "Helv"
-
- 6 6 62 10 1000 1342308352 "static" "&Your time zone:" 0
-
- 4 20 88 40 9500 1344339971 "combobox" "" 0
-
- 98 4 40 14 1 1342373889 "button" "OK" 0
-
- 98 20 40 14 2 1342373888 "button" "Cancel" 0
-
- @Function@END DIALOG
-
- >
-
- [Embedded]
- 00013398
- >
- [macsum] 9
- AreaCodes 0 0 8 0
- Defaults 1686 0 4 58
- ExitCodes 2475 0 1 98
- Searchem 2571 0 26 106
- FindTimeDiff 6386 2 2 250
- FoundDataBox 9222 0 -1 362
- AreaCodeData 9501 0 -1 372
- ShowDataBox 9776 0 -1 382
- DefaultBox 10576 0 -1 398
- [macse]
- 14 AreaCodes
- 20 00001498
- 19 00001498
- 0 296 1
- 16 ExitCodes
- 0 802
- 13
- 8 3
- 0 295
- 13
- 8 4
- 0 284 "user,GetActiveWindow,H"
- 13
- 0 284 "user,SetWindowText,IHC" [X] "Adding ""ACodes"" to the default Ami Pro menu bar."
- 0 515 1 "&ACodes"
- 0 516 1 "&ACodes" "&Find Area Code..." "{3}!Searchem()" "Look up data related to a specified area code."
- 0 516 1 "&ACodes" "Set &Defaults..." "{3}!Defaults()" "Set your time zone"
- 0 516 1 "&ACodes" "-" "" ""
- 0 516 1 "&ACodes" "E&xit Area Codes" "{3}!ExitCodes()" "Remove the ACodes menu."
- 7 ""
- 0 280 "{4}ACODES.INI" 0
- 13
- 18 0
- 11 00000695
- 0 296 0
- 0 3 "Cannot find {4}ACODES.INI, please place in your Macros directory."
- 16 ExitCodes
- 10 00001498
- 0 286 "Header" "MaxRecords" "{4}ACODES.INI"
- 13
- 8 5
- 6 5
- 7 ""
- 18 0
- 6 5
- 5 0
- 18 0
- 1 2
- 11 00000810
- 5 1
- 8 5
- 0 286 "Header" "OurZone" "{4}ACODES.INI"
- 13
- 8 6
- 0 271 "Data" "{5}"
- 0 271 "OurZone" 1
- 0 271 "MaxRecords" 1
- 0 264 "OurZone" "{6}"
- 0 264 "MaxRecords" "{5}"
- 5 0
- 0 259 "{4}ACODES.INI" "r"
- 13
- 0 805 &1 [X]
- 13
- 18 1
- 11 00001166
- 7 "DATA"
- 0 257 "{1}"
- 13
- 0 805 &2 [X]
- 13
- 0 15 [X] 2 4
- 13
- 0 18 [X]
- 13
- 18 1
- 11 00001153
- 10 00001044
- 10 00001230
- 0 3 "Could not open {4}ACODES.INI!"
- 16 ExitCodes
- 10 00001498
- 0 789 "Reading area code information from data file, please wait..."
- 5 1
- 8 7
- 6 5
- 6 7
- 18 2
- 12 00001385
- 10 00001466
- 5 1
- 6 7
- 3 0
- 8 7
- 10 00001310
- 0 257 "{1}"
- 13
- 8 2
- 0 20 "{2}" 2 "="
- 13
- 0 272 "Data" "{7}" [X]
- 10 00001352
- 0 260 "{1}"
- 0 296 0
- 0 789 ""
- 0 296 0
- 0 284 "user,GetActiveWindow,H"
- 13
- 0 284 "user,SetWindowText,IHC" [X] ""
- 0 284 "user,GetActiveWindow,H"
- 13
- 0 284 "user,SetWindowText,IHC" [X] "Ami Pro"
- 0 789 ""
- 6 0
- 15
- 9
- 14 Defaults
- 0 265 "OurZone"
- 13
- 0 31 9500 [X]
- 0 31 9500 "Atlantic"
- 0 31 9500 "Eastern"
- 0 31 9500 "Central"
- 0 31 9500 "Mountain"
- 0 31 9500 "Pacific"
- 0 31 9500 "Alaskan"
- 0 31 9500 "Hawaiian"
- 0 31 9500 "ZE12"
- 0 31 9500 "ZE11"
- 0 31 9500 "EAT"
- 0 31 9500 "CAT"
- 0 31 9500 "WAT"
- 0 31 9500 "ZE7"
- 0 31 9500 "ZE6"
- 0 31 9500 "ZE5"
- 0 31 9500 "ZE4"
- 0 31 9500 "ZE3"
- 0 31 9500 "ZE2"
- 0 31 9500 "CET"
- 0 31 9500 "GMT"
- 0 31 9500 "ZW1"
- 0 31 9500 "ZW2"
- 0 31 9500 "ZW3"
- 0 31 9500 "ZW4"
- 0 295
- 13
- 8 1
- 0 26 "." "DefaultBox"
- 13
- 8 2
- 6 2
- 5 -1
- 18 0
- 11 00000645
- 0 3 "Could not find dialog box; Exiting function."
- 6 0
- 15
- 9
- 10 00000686
- 6 2
- 5 0
- 18 0
- 11 00000686
- 6 0
- 15
- 9
- 0 27 9500
- 13
- 8 3
- 0 287 "Header" "OurZone" "{3}" "{1}ACODES.INI"
- 0 264 "OurZone" "{3}"
- 6 0
- 15
- 9
- 14 ExitCodes
- 0 266 "MaxRecords"
- 0 266 "Data"
- 0 266 "OurZone"
- 0 521 1 "&ACodes"
- 6 0
- 15
- 9
- 14 Searchem
- 20 00003794
- 19 00003794
- 0 296 1
- 0 789 "Setting up for area code data query..."
- 0 265 "MaxRecords"
- 13
- 8 1
- 6 1
- 21 2 [X]
- 5 1
- 8 3
- 6 1
- 6 3
- 18 2
- 12 00000225
- 10 00000273
- 5 1
- 6 3
- 3 0
- 8 3
- 10 00000150
- 6 3
- 0 273 "Data" "{3}"
- 13
- 23 2
- 10 00000192
- 6 1
- 21 4 [X]
- 5 0
- 8 5
- 0 265 "OurZone"
- 13
- 8 6
- 0 296 0
- 0 26 "." "AreaCodeData"
- 13
- 8 7
- 0 296 1
- 0 789 ""
- 6 7
- 5 -1
- 18 0
- 11 00000506
- 0 3 "Can't find the dialog box. Exiting macro!"
- 16 ExitMacro
- 10 00003794
- 10 00000548
- 6 7
- 5 0
- 18 0
- 11 00000548
- 10 00003794
- 0 27 8000
- 13
- 8 8
- 5 1
- 8 9
- 0 1041 &2 1 ""
- 6 9
- 5 0
- 18 1
- 11 00000745
- 0 1044 &2 "{8}" 2 "~" "{9}"
- 13
- 8 9
- 6 9
- 5 0
- 18 1
- 11 00000732
- 6 5
- 5 1
- 3 0
- 8 5
- 6 5
- 6 9
- 22 2
- 23 4
- 10 00000594
- 6 5
- 5 1
- 18 3
- 11 00001694
- 6 5
- 21 10 [X]
- 5 1
- 8 3
- 6 5
- 6 3
- 18 2
- 12 00000875
- 10 00001087
- 5 1
- 6 3
- 3 0
- 8 3
- 10 00000800
- 6 3
- 6 3
- 22 4
- 0 20 [X] 1 "~"
- 13
- 6 3
- 22 4
- 0 20 [X] 2 "~"
- 13
- 6 3
- 22 4
- 0 20 [X] 3 "~"
- 13
- 6 3
- 22 4
- 0 20 [X] 4 "~"
- 13
- 0 16 [X] "/" [X] "/" [X] "/" [X]
- 13
- 23 4
- 6 3
- 22 4
- 0 31 9000 [X]
- 10 00000842
- 0 296 0
- 0 31 8500 "{5} locations found:"
- 0 26 "." "FoundDataBox"
- 13
- 8 11
- 0 296 1
- 6 11
- 5 -1
- 18 0
- 11 00001299
- 0 296 0
- 0 3 "Can't open the dialog box! Exiting macro."
- 0 296 1
- 10 00003794
- 10 00001342
- 6 11
- 5 0
- 18 0
- 11 00001342
- 10 00000273
- 0 27 9000
- 13
- 8 12
- 5 1
- 8 3
- 6 5
- 6 3
- 18 2
- 12 00001448
- 10 00001681
- 5 1
- 6 3
- 3 0
- 8 3
- 10 00001373
- 6 12
- 6 3
- 22 4
- 18 0
- 11 00001668
- 0 20 "{12}" 1 "/"
- 13
- 8 13
- 0 20 "{12}" 2 "/"
- 13
- 8 8
- 0 20 "{12}" 3 "/"
- 13
- 0 20 [X] 1 "!"
- 13
- 8 14
- 0 20 "{12}" 3 "/"
- 13
- 0 20 [X] 2 "!"
- 13
- 8 15
- 0 20 "{12}" 4 "/"
- 13
- 8 16
- 10 00001415
- 10 00002025
- 6 5
- 5 0
- 18 0
- 11 00001801
- 0 3 "Sorry, but I could find no matching records."
- 10 00000273
- 10 00002025
- 5 1
- 22 4
- 0 20 [X] 1 "~"
- 13
- 8 13
- 5 1
- 22 4
- 0 20 [X] 2 "~"
- 13
- 8 8
- 5 1
- 22 4
- 0 20 [X] 3 "~"
- 13
- 0 20 [X] 1 "!"
- 13
- 8 14
- 5 1
- 22 4
- 0 20 [X] 3 "~"
- 13
- 0 20 [X] 2 "!"
- 13
- 8 15
- 5 1
- 22 4
- 0 20 [X] 4 "~"
- 13
- 8 16
- 16 FindTimeDiff "{16}" "{6}"
- 13
- 8 17
- 6 17
- 5 24
- 18 3
- 6 17
- 5 -24
- 18 5
- 1 2
- 11 00002465
- 0 296 0
- 0 789 "Time zone conflict."
- 6 17
- 5 383
- 18 0
- 11 00002274
- 0 3 "Both your time zone and the location's time zone are incorrect."
- 10 00002433
- 6 17
- 5 128
- 18 3
- 11 00002355
- 0 3 "Your time zone is incorrect."
- 10 00002433
- 6 17
- 5 100
- 18 3
- 11 00002433
- 0 3 "The location's time zone is incorrect."
- 0 789 ""
- 0 296 1
- 10 00003794
- 0 772
- 13
- 0 773 [X] 1
- 13
- 8 18
- 0 772
- 13
- 0 770 [X] "d"
- 13
- 8 19
- 0 772
- 13
- 5 3600
- 6 17
- 4 0
- 3 0
- 0 773 [X] 1
- 13
- 8 20
- 6 20
- 6 18
- 18 5
- 6 17
- 5 0
- 18 3
- 1 1
- 11 00002709
- 5 86400
- 0 772
- 13
- 3 0
- 0 770 [X] "d"
- 13
- 8 21
- 10 00002721
- 6 19
- 8 21
- 0 772
- 13
- 0 773 [X] 6
- 13
- 8 18
- 0 772
- 13
- 5 3600
- 6 17
- 4 0
- 3 0
- 0 773 [X] 6
- 13
- 8 20
- 6 17
- 5 0
- 18 5
- 11 00002984
- 5 -1
- 6 17
- 4 0
- 8 17
- 6 17
- 5 1
- 18 1
- 11 00002922
- 7 "s"
- 8 22
- 10 00002934
- 7 ""
- 8 22
- 7 "{17} hour{22} behind you."
- 8 23
- 10 00003169
- 6 17
- 5 0
- 18 3
- 11 00003134
- 6 17
- 5 1
- 18 1
- 11 00003070
- 7 "s"
- 8 22
- 10 00003082
- 7 ""
- 8 22
- 7 "{17} hour{22} ahead of you."
- 8 23
- 10 00003169
- 7 "the same time as yours."
- 8 23
- 0 20 "{15}" 1 ","
- 13
- 7 ""
- 18 1
- 0 20 "{15}" 2 ","
- 13
- 7 ""
- 18 1
- 1 1
- 11 00003292
- 7 "Cities are"
- 8 24
- 10 00003311
- 7 "City is"
- 8 24
- 0 31 8010 "Country code: {13}"
- 0 31 8011 "Area/City code: {8}"
- 0 31 8012 "{14}"
- 0 31 8013 "Major {24} {15}"
- 0 31 8014 "Time zone: {16}, {23}"
- 6 17
- 5 0
- 18 0
- 11 00003560
- 0 31 8015 "The current time is"
- 0 31 8016 "{18} on {19}"
- 10 00003639
- 0 31 8015 "Your time is {18} on {19}"
- 0 31 8016 "Their time is {20} on {21}"
- 0 296 0
- 0 26 "." "ShowDataBox"
- 13
- 8 25
- 0 296 1
- 6 25
- 5 -1
- 18 0
- 11 00003781
- 0 3 "Cannot find dialog box! Exiting macro."
- 6 0
- 15
- 9
- 10 00000273
- 0 296 0
- 6 0
- 15
- 9
- 14 FindTimeDiff
- 20 00002815
- 19 00002815
- 0 18 "{1}"
- 13
- 8 1
- 0 18 "{0}"
- 13
- 8 0
- 7 "GMT"
- 6 1
- 18 0
- 11 00000141
- 5 0
- 8 1
- 10 00001434
- 7 "ZW1"
- 6 1
- 18 0
- 11 00000197
- 5 1
- 8 1
- 10 00001434
- 7 "ZW2"
- 6 1
- 18 0
- 11 00000253
- 5 2
- 8 1
- 10 00001434
- 7 "ZW3"
- 6 1
- 18 0
- 11 00000309
- 5 3
- 8 1
- 10 00001434
- 7 "ZW4"
- 6 1
- 18 0
- 11 00000365
- 5 4
- 8 1
- 10 00001434
- 7 "ATLANTIC"
- 6 1
- 18 0
- 11 00000426
- 5 5
- 8 1
- 10 00001434
- 7 "EASTERN"
- 6 1
- 18 0
- 11 00000486
- 5 6
- 8 1
- 10 00001434
- 7 "CENTRAL"
- 6 1
- 18 0
- 11 00000546
- 5 7
- 8 1
- 10 00001434
- 7 "MOUNTAIN"
- 6 1
- 18 0
- 11 00000607
- 5 8
- 8 1
- 10 00001434
- 7 "PACIFIC"
- 6 1
- 18 0
- 11 00000667
- 5 9
- 8 1
- 10 00001434
- 7 "ALASKAN"
- 6 1
- 18 0
- 11 00000728
- 5 10
- 8 1
- 10 00001434
- 7 "HAWAIIAN"
- 6 1
- 18 0
- 11 00000790
- 5 12
- 8 1
- 10 00001434
- 7 "ZE12"
- 6 1
- 18 0
- 11 00000849
- 5 -12
- 8 1
- 10 00001434
- 7 "ZE11"
- 6 1
- 18 0
- 11 00000908
- 5 -11
- 8 1
- 10 00001434
- 7 "EAT"
- 6 1
- 18 0
- 11 00000966
- 5 -10
- 8 1
- 10 00001434
- 7 "CAT"
- 6 1
- 18 0
- 11 00001023
- 5 -9
- 8 1
- 10 00001434
- 7 "WAT"
- 6 1
- 18 0
- 11 00001080
- 5 -8
- 8 1
- 10 00001434
- 7 "ZE6"
- 6 1
- 18 0
- 11 00001137
- 5 -6
- 8 1
- 10 00001434
- 7 "ZE5"
- 6 1
- 18 0
- 11 00001194
- 5 -5
- 8 1
- 10 00001434
- 7 "ZE4"
- 6 1
- 18 0
- 11 00001251
- 5 -4
- 8 1
- 10 00001434
- 7 "ZE3"
- 6 1
- 18 0
- 11 00001308
- 5 -3
- 8 1
- 10 00001434
- 7 "ZE2"
- 6 1
- 18 0
- 11 00001365
- 5 -2
- 8 1
- 10 00001434
- 7 "CET"
- 6 1
- 18 0
- 11 00001422
- 5 -1
- 8 1
- 10 00001434
- 5 255
- 8 1
- 7 "GMT"
- 6 0
- 18 0
- 11 00001490
- 5 0
- 8 0
- 10 00002783
- 7 "ZW1"
- 6 0
- 18 0
- 11 00001546
- 5 1
- 8 0
- 10 00002783
- 7 "ZW2"
- 6 0
- 18 0
- 11 00001602
- 5 2
- 8 0
- 10 00002783
- 7 "ZW3"
- 6 0
- 18 0
- 11 00001658
- 5 3
- 8 0
- 10 00002783
- 7 "ZW4"
- 6 0
- 18 0
- 11 00001714
- 5 4
- 8 0
- 10 00002783
- 7 "ATLANTIC"
- 6 0
- 18 0
- 11 00001775
- 5 5
- 8 0
- 10 00002783
- 7 "EASTERN"
- 6 0
- 18 0
- 11 00001835
- 5 6
- 8 0
- 10 00002783
- 7 "CENTRAL"
- 6 0
- 18 0
- 11 00001895
- 5 7
- 8 0
- 10 00002783
- 7 "MOUNTAIN"
- 6 0
- 18 0
- 11 00001956
- 5 8
- 8 0
- 10 00002783
- 7 "PACIFIC"
- 6 0
- 18 0
- 11 00002016
- 5 9
- 8 0
- 10 00002783
- 7 "ALASKAN"
- 6 0
- 18 0
- 11 00002077
- 5 10
- 8 0
- 10 00002783
- 7 "HAWAIIAN"
- 6 0
- 18 0
- 11 00002139
- 5 12
- 8 0
- 10 00002783
- 7 "ZE12"
- 6 0
- 18 0
- 11 00002198
- 5 -12
- 8 0
- 10 00002783
- 7 "ZE11"
- 6 0
- 18 0
- 11 00002257
- 5 -11
- 8 0
- 10 00002783
- 7 "EAT"
- 6 0
- 18 0
- 11 00002315
- 5 -10
- 8 0
- 10 00002783
- 7 "CAT"
- 6 0
- 18 0
- 11 00002372
- 5 -9
- 8 0
- 10 00002783
- 7 "WAT"
- 6 0
- 18 0
- 11 00002429
- 5 -8
- 8 0
- 10 00002783
- 7 "ZE6"
- 6 0
- 18 0
- 11 00002486
- 5 -6
- 8 0
- 10 00002783
- 7 "ZE5"
- 6 0
- 18 0
- 11 00002543
- 5 -5
- 8 0
- 10 00002783
- 7 "ZE4"
- 6 0
- 18 0
- 11 00002600
- 5 -4
- 8 0
- 10 00002783
- 7 "ZE3"
- 6 0
- 18 0
- 11 00002657
- 5 -3
- 8 0
- 10 00002783
- 7 "ZE2"
- 6 0
- 18 0
- 11 00002714
- 5 -2
- 8 0
- 10 00002783
- 7 "CET"
- 6 0
- 18 0
- 11 00002771
- 5 -1
- 8 0
- 10 00002783
- 5 128
- 8 0
- 6 1
- 6 0
- 3 1
- 8 3
- 6 3
- 15
- 9
- 0 296 0
- 6 2
- 15
- 9
- DIALOG FoundDataBox
- -2134376448 4 52 72 248 90 "" "" "Items Found"
- FONT 6 "Helv"
- 8 12 188 72 9000 1352728579 "listbox" "" 0
- 204 4 40 14 1 1342242817 "button" "OK" 0
- 204 20 40 14 2 1342242816 "button" "Cancel" 0
- 8 4 72 8 8500 1342177280 "static" "locations found:" 0
- DIALOG AreaCodeData
- -2134376448 4 132 56 140 38 "" "" "Area Codes"
- FONT 6 "Helv"
- 66 12 16 12 8000 1350631552 "edit" "" 0
- 96 4 40 14 1 1342373889 "button" "OK" 0
- 96 20 40 14 2 1342373888 "button" "Cancel" 0
- 6 14 56 8 1000 1342177280 "static" "&Area/City code:" 0
- DIALOG ShowDataBox
- -2134376448 10 98 52 210 114 "" "" "Area Code Information"
- FONT 6 "Helv"
- 166 4 40 14 1 1342373889 "button" "OK" 0
- 6 8 70 8 8010 1342177280 "static" "Country code: xxx" 0
- 84 8 70 8 8011 1342177280 "static" "Area/City code: xxx" 0
- 8 34 194 8 8012 1342177281 "static" "Geographical location goes here" 0
- 8 48 194 8 8013 1342177281 "static" "Major cities are: major cities go here" 0
- 4 20 202 42 10 1342177287 "button" "Geographical information" 0
- 4 62 202 48 11 1342177287 "button" "Time information" 0
- 8 74 194 8 8014 1342177281 "static" "Time zone: XXXXXXXX, 99 hours ahead of you." 0
- 8 86 194 8 8015 1342177281 "static" "Your time: 12:00pm on Thursday, December 14, 1991" 0
- 8 98 194 8 8016 1342177281 "static" "Your time: 12:00pm, Their time: 12:00pm" 0
- DIALOG DefaultBox
- -2134376448 4 120 48 142 38 "" "" "Area Codes Defaults"
- FONT 6 "Helv"
- 6 6 62 10 1000 1342308352 "static" "&Your time zone:" 0
- 4 20 88 40 9500 1344339971 "combobox" "" 0
- 98 4 40 14 1 1342373889 "button" "OK" 0
- 98 20 40 14 2 1342373888 "button" "Cancel" 0
- 00013423
-