Contact | Privacy | Datenschutzerklärung | Impressum

TuSearch

Format: TuSearch ( tuple, fieldname, val [, pos] )

Purpose: Search a tuple with certain field value val in a tuple of tuples, i.e. an array of tuples. The parameter tuple is a tuple that contains only tuples. The parameter fieldname must be string. Search for a tuple element in tuple that has a field fieldname with value val. The parameter val must be of type Integer, Real, or String. The search begin at index position 0, but the optional parameter pos (Integer) can override this, setting a higher start position.

Return Values: TuSearch() returns the index postion in tuple if the search was succesful, otherwise it return null.

Example 1:

heitml input:resulting output:
<? substRE("Hello World ??!","[[:punct:]]",".")>Hello World .?!
<? substallRE("Hello World ??!","[[:punct:]]","!")>Hello World !!!
<? substallRE("Hello World ??!","^.*?o(.*)d.*$","$1")> Worl
<? substallRE("First,Next,Last", "(?x: ^([^,]*) \, ([^,]*) \, ([^,]*) $)", "$3,$2,$1");>Last,Next,First
<? substallRE("<h1>The h1-Tag and the h2-Tag</h1>", "(?x: h(\\d))", "H$1");><H1>The H1-Tag and the H2-Tag</H1>
<? substallRE("<h1>The h1-Tag and the h2-Tag</h1>", "(?x: h((1)|(2)) )()", "H$2$3");><H1>The H1-Tag and the H2-Tag</H1>

See Also: TuSearch(), TuSearchTuple().


This page was dynamically generated by the web application development tool RADpage of H.E.I. Try the AJAX Article (in German) on www.h-e-i.de.
© 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
    heitml Functions
    Advanced Functions
      containsRE
      containsCaseRE
      createMatchArray
      fileio_chmod
      fileio_fclose
      fileio_feof
      fileio_fopen
      fileio_fread
      fileio_fwrite
      fileio_strerror
      indexRE
      indexCaseRE
      regexcomp
      regexexec
      request_string
      request_tuple
      substr
      substRE
      substallRE
      TuSearch
      TuSearchTuple
      TuSort
    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