home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / utilities / utilsp / phoneday / text < prev   
Encoding:
Text File  |  1995-01-23  |  3.1 KB  |  88 lines

  1. This text file describes how Keystroke users can define their own
  2. special 'PhoneDay' application for their particular DataBase.
  3.  
  4. We suggest you move the 'PhoneDay' BASIC function program to
  5. within the !KeysLib.Library directory in order for it to work correctly.
  6.  
  7.  
  8.  
  9. PhoneDay v1.1
  10. -------------
  11. This function is designed to make 'PhoneDay' easy.
  12. In Britain, we are facing a large change of our phone numbers.
  13.  
  14. British Telcom has told us that ALL 3 or 4 digit prefix codes in Britain will
  15. now be 4 or 5 digits with 01XXX or 01XX instead of 0XXX or 0XX.
  16. '081-123-45678' will become '0181-123-45678' or
  17. '0506-411162' will become '01506-411162'.
  18. But 5 towns are getting completely new codes and a prefix.
  19. With Jersey also having a minor change.
  20. Plus a lot of mobile (Vodaphone,CellNet,Orange,etc.), BT and Mercury number
  21. are remaining the same. 
  22.  
  23. These new dialling codes are valid NOW (28/9/94) and the old numbers will be
  24. obsolete from 16th April 1995. So change them as soon as possible.
  25.  
  26. This program allows these numbers to be changed with ease.
  27.  
  28. Run <Keystroke$Lib>.PhoneDay <parameter1>
  29.  
  30. <parameter1>
  31. Simply the phone number you want to change or findout if it needs to be changed.
  32.  
  33. Ideally this parameter would be made via the Keystroke Caret$text variable
  34. from reading a writable icon of a database of some sort.
  35.  
  36. End result.
  37. The new phone number is contained within the system variable 'KSPhone'.
  38.  
  39.  
  40. Example of use:
  41. Imagine that the caret is visible within a writable icon of a
  42. database record and this icon has a telephone number in it.
  43.  
  44. In this example the writable icon may read '0506 411162'.
  45.  
  46. If Keystroke is set to do a -
  47. *command:
  48. Run <Keystroke$Lib>.PhoneDay <Caret$text>
  49.  
  50. followed by a -
  51.  
  52. Insert text:
  53. |U<KSPhone>
  54.  
  55. When ran the '0506 411162' will be placed within the variable 'Caret$text'
  56. and examined by the function 'PhoneDay'.
  57. It will match up the first 4 digits of the phone number. 
  58.  
  59. The 'Insert text' command will delete the text within the database's telephone
  60. field and be replaced by the contents of 'KSPhone' which is now '01506 411162'.
  61.  
  62.  
  63. Other examples:
  64.  
  65. Writable icon is 'Tel: 031-555-5704'
  66. Run <Keystroke$Lib>.PhoneDay <Caret$text>
  67. Gives 'Tel: 0131-555-5704' in variable KSPhone.
  68.  
  69. Writable icon is 'Tel: 010 91 506 53416'
  70. Run <Keystroke$Lib>.Phoneday <Caret$text>
  71. Gives 'Tel: 00 91 506 534166' in variable KSPhone.
  72.  
  73. You can imagine setting Keystroke to place the caret within a database
  74. telephone field and calling these two commands. Then advancing to the next
  75. record and looping back to the start of the Keystroke sequence until all
  76. of your database records are converted. This is a potential huge time saver
  77. over someone else doing it and perhaps making human errors!
  78.  
  79. Lastly, we have provided an optional use variable called 'KSmatch'.
  80. It is always set to a specific value if certain conditions are met.
  81. KSmatch = 0 if no change to the phone number happened.
  82. KSmatch = 1 if the phone number was changed.
  83. KSmatch = 2 if no phone number was presented for checking! (a blank field?)
  84. KSmatch = 3 if the phone number has already been changed  to 01XXX, etc. 
  85.  
  86. This KSmatch variable is only of use if you are wanting to create long complex
  87. Keystroke sequences.
  88.