Address, Postcode and Bank solutions

- Postcode Manual
AFD Postcode Manual: Postcode for DOS

POSTCODE FOR DOS

AFD Postcode provides a simple way to speed up the entry of address information into any DOS program: e.g. Word Processors, Databases and accounting programs etc. 

Type in the postcode you require and the Town, Locality, County, Mailsort Code and most STD codes are provided for you. You can amend these, add a house name and/or street number, then press the [Insert] key to transfer the address to your program.  In view of different methods of operating DOS programs, AFD offer several ways of using the rapid addressing techniques. The two principle and popular methods are:

PC-POP Terminate-Stay-Resident (TSR) Address Lookup

  • Street
  • Locality
  • Town
  • County (where a county is present)
  • STD Code
  • Mailsort Code

Press

  • N to enter a new postcode to lookup
  • [Ins] to insert the address into your program (eg Word processor)
  • L to print mailing labels for the address
  • V to print envelopes for the address
  • X to unload PC-POP from memory: only possible if no other program has been loaded into memory since PC-POP was started
  • PgDn to clear PC-POP from screen should you have popped it up by accident or to exit editing of an address
  • [Esc] to close the PC-POP screen without other action
  • /? Show command line parameters
  • /I:inifile use INIFILE.INI initialization file (default=USERNAME.INI)
  • /N become memory-resident without awaiting keystroke confirmation
  • /K:nn Max No of characters to pass to keyboard buffer (default=no limit)

A - Set Address Parameters
This will take you into the section that will configure PC-POP to place the data into your application in the manner you want. You can move around this screen using the arrow keys. Once you have finished, press Page Down to exit the screen.

Title Field
This allows you to alter the name of the field, this does not appear when the address is transferred.

Max Len
This allows you to alter the maximum number of characters that will be transferred to your application.

Option
This forces, or not, the transferred field into upper case:
      0 - Normal
      1 - Force Upper Case

In the case of the County field, it will allow you to choose the type of county information you require:
     0 - Postal counties - does not provide counties for large or county towns
     1 - Optional counties - provides county names for all except large cities
     2 - Abbreviated Postal counties - uses standard abbreviations to shorten postal counties
     3 - Abbreviated Optional counties - uses standard abbreviations to shorten optional counties

Delimiter
This enables you to use DOS ASCII codes to replace the keystrokes that you would normally use to exit the field that has just been completed and move to the next data input field of your database etc.  Some examples are :-
     \008 Backspace
     \009 Horizontal Tab
     \011 Vertical Tab
     \013 Carriage return [Enter]
     \027 Esc (Escape)
     \044 , (comma)
Consult your DOS manual for more.  It will even allow you to have plain text added.

Line
This will set the Line Number order in which the data is transferred. A zero will compress the line, use this when transferring into a word processor when there is no locality field available. Entering '-1' will ignore the line completely when transferring data. Defaults are:

INSTRUCTIONS - PC-DOS Command-Line Address Lookup

PC-DOS is a powerful and versatile rapid address program, which can actually write programs for your application, in order to pass data to them. It can be used in a very wide range of database and programming systems, including Alpha 4, Basic, Clipper, dBase, FoxPro, Paradox and most programming languages.

PC-DOS can look up postcodes, or use Street and Town to find an address and a range of parameters allow you to tune calls to the program exactly as you require them.

Parameters

    /? Show command line parameters
    /C:nnnn Convert 'nnnn' STD Code to Phoneday Code
    /F:filename Place data in FILENAME (default = AFD-PC.TXT)
    Allows you to give a path and filename for the result of your address look-up
    /I:inifile Use INIFILE.INI initialisation file (default = USERNAME.INI) This allows you to choose which INIFILE contains the colour settings you wish to use - see configuring PC-POP above.
    /M:BW Set for Mono (B&W) monitor
    PC-DOS defaults to EGA/VGA mode - use this parameter if you have a monochrome display.
    /P:(AA12 3BB) Lookup postcode AA12 3BB and place result in FILENAME file
    /S:nnnn Convert 'nnnn' STD Code to Phoneday Code & look up location
    /T:x Result file type where:

    A=Alpha 4
    D=dBase / Fox / Clipper etc
    P=Paradox
    T=Dos Text File

    This parameter allows you to control the format of the result file - If A, D or P types are specified, the file can be used as a PROGRAM from the respective application.

  • Assemble a memory variable with the PC-DOS Parameters
    FindAddress = "/P:(" + Pcode + ") /T:D /F:C:\postcode\AFD-PC /M:BW"
  • Call the PC-DOS routine from AFD
    ! C:\postcode\PC-DOS &FindAddress
  • Make sure that the new copy of AFD-PC is used
    Clear Program AFD-PC
  • Run the resulting program created by PC-DOS
    DO C:\postcode\AFD-PC

Paradox

Any Questions? Call now on 01624 811711
  Postcode

  Manual Contents

  Appendix