Documentation
Getting Started
New Features
Component Guide
Programming
    Language Guide
    Language Ref.
       General Design
       Lexical Structure
       Expressions
       Objects
       Methods
       Classes
       heitml Tags
          ? Tag
          assign Tag
          defautoclose Tag
          break Tag
          callenv Tag
          dbdatabase Tag
          dbquery Tag
          dbupdate Tag
          def Tag
          defclass Tag
          defbody Tag
          defenv Tag
          defhtml Tag
          defwysiwyg Tag
          for Tag
          forin Tag
          forsep Tag
          if Tag
          elsif Tag
          else Tag
          include Tag
          includeonce Tag
          inherit Tag
          let Tag
          mail Tag
          return Tag
          shell Tag
          while Tag
          writefile Tag
          \ Tag
       heitml Functions
       Database Access
       Global Variables
       Form Fields
       Server Variables
       Sessions
       heitml Syntax
    Component Ref.
    Class Library
    User Components
    Tryout Form
    Tutorial
    heitml 1
User Guide
Registration
Frame
    

def Tag

Format: <def IdName [ FormalParameterlist ] > heitml * </def>
Format: <def IdName [ FormalParameterlist ] >< inherit IdName1, ... > heitml * </def>

Purpose: Defines a method (format 1) or a class (format 2) called IdName. The heitml source code within the tag is referred to as the body.

After the def tag, the method or class can then be called using the tag syntax. It is therefore also called a user-defined Tag.

If the body contains a return tag with a result expression the defined method can be used as (and is called) a User-defined Function.

If there are multiple definitions for the same IdName, the textually last definition is active.

See Also: See Methods for a detailed description of methods and Classes about classes. For a description of the inherit tag, see the inherit tag.

Note: The def Tag is Case Sensitive, which means heitml will not recognize it if you use capital letters (e.g. <DEF IdName>).

This page was dynamically generated by heitml
© 1996-2008 H.E.I. All Rights Reserved