Contact | Privacy | Datenschutzerklärung | Impressum

forin Tag

Format: <forin Variable Expression> heitml <forsep> heitml </forin>

Purpose: The forin tag is used to process all fields of an object or all characters of a string.

First, the Variable is evaluated and must result in an object or a string. Then, the Expression is evaluated which must result in a variable to which the current index of the object field or position of the string is assigned. Through the assignment, the type of the variable becomes integer. For each object field or string character the body of the loop is executed.

An optional forsep section can be specified which is executed between two object fields or string characters. The forsep section is not executed after the last object field or string character.

Example:

input:
<let a=array(0);
  ArAppend(a,"Hello");
  ArAppend(a,"World.");
  ArAppend(a,"This");
  ArAppend(a,"is");
  ArAppend(a,"heitml");
  ArAppend(a, SrvHeitmlVersionString);
  ArAppend(a,"!");
 forin i a;
   ? a[i];
 forsep;
   ? " ";
/forin>
resulting output:
Hello World. This is heitml 2.1 !

Note: The forin Tag is Case Sensitive, which means that heitml will not recognize it if you use capital letters (e.g. <FORIN Variable>).

This page was dynamically generated by the web application development tool RADpage of H.E.I. H.E.I. provides support, tools, and services like Webdesign in Mannheimm, the HTML/CSS 3D WebGL Animation Library taccgl, 3D Webdesign, and 3D Product Configurator (3D Produkt Konfigurator in German).

Selected blog articles : 3D Objects on HTML pages, CSS Transition Visibility, and CSS Transition Display.


© 1996-2024 H.E.I. All Rights Reserved.



Homepage
Intro/Features
Component Guide
Programming
  Language Guide
  Language Ref.
    General Design
    Lexical Structure
    Expressions
    Objects
    Methods
    Classes
    heitml Tags
      ? Tag
      assign Tag
      break Tag
      callenv Tag
      dbdatabase Tag
      dbquery Tag
      dbupdate Tag
      def Tag
      defautoclose Tag
      defbody Tag
      defclass Tag
      defcontpara Tag
      defenv Tag
      defhtml Tag
      definpara Tag
      defpara Tag
      defremovecdata Tag
      deftranspara 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
    Advanced Functions
    Database Access
    Global Variables
    Form Fields
    Server Variables
    Sessions
    heitml Syntax
  Component Ref.
  Class Library
  User Components
  Tutorial
  New Features
  heitml 1
User Guide
Services
Privacy
Datenschutz
 
Contact / Impressum