PC DB: Description of TPL File

Last reviewed: May 16, 1995
Article ID: Q87432
The information in this article applies to:
  • Microsoft Mail for PC Networks, versions 2.1e, 3.0, and 3.2

SUMMARY

A TPL template file describes how information is input and displayed on the screen via a template window. All template files are stored in the TPL subdirectory.

There are two types of templates used by the Mail system: predefined system templates and (optionally) a custom defined template for local postoffice users.

The system templates are supplied with the Server and Gateway components of Microsoft Mail. They should never be modified and are marked as read-only during installation.

The MS Mail administrator has the option to create an ADMIN.TPL file, which is used for locally defined users. The ADMIN.TPL file will always have an associated ADMIN.INF file that contains the data defined by the TPL file.

The record size of the INF file is defined by the contents of the TPL file. Because of this, the TPL file should never be changed after the initial creation of the INF file. Template utilities are provided that allow the administrator to make any changes, if necessary.

MORE INFORMATION

delimiter ::= '~' terminator ::= '\r'

TemplateField ::= SEQUENCE {

   prompt string
   delimiter
   start number
   delimiter
   width number
   delimiter
   edit string
   delimiter
   data string
   delimiter
   internal string
   terminator
}

   Field     Description
   -----     -----------

   Prompt    This is a text label that describes the field. The prompt
             appears to the left of the text entry field.

   Start     This field is used to layout an entry field. It specifies
             the character position from the left margin where the
             entry field should be displayed.

   Width     The number of characters in the field.

   Edit      The permissible characters that can be entered into the
             string. All characters are assumed to be in the codepage
             850 character set.

                Character   Description
                ---------   -----------

                U           Uppercase characters
                N           Numeric characters
                L           Lowercase characters
                P           Punctuation characters
                A           Any characters

   Internal  This is an internal preamble that will be stored in the
             INF record before the field data.

For additional information, please see the "Templates, Custom User Directories" section in the Microsoft Mail for PC Networks "Administrator's Guide."


Additional reference words: 2.10e 3.00 3.20
KBCategory: kbenv
KBSubcategory: MailPCDB


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 16, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.