Contact | Privacy | Datenschutzerklärung | Impressum


Format: TuSlice (object, start [, end])

Purpose: Make a new object that contains a field subset of an object. The object parameter must denote an object. The start and end parameters must be integers. If parameter end is not given, it defaults to the length of the object. If start or end are less than 0, they are set to 0. If start or end are greater than the length of the object, they are set to the length of the object. If start is greater than end, it is set to end.

Return Values: Returns a new object containing all fields beginning with the field with index start and ending with the field with index end-1. The field with index start in the original object becomes field with index 0 of the resulting object, aso. If start is equal to end an empty object is returned.


input:resulting output:
<? splitstring("H.E.I",".")>([0]="H", [1]="E", [2]="I")
<? TuSlice(splitstring("H.E.I","."),0)>([0]="H", [1]="E", [2]="I")
<? TuSlice(splitstring("H.E.I","."),0,len(s))>([0]="H", [1]="E", [2]="I")
<? TuSlice(splitstring("H.E.I","."),1,0)>()
<? TuSlice(splitstring("H.E.I","."),1,2)>([0]="E")

Tip: The substring() function does the same operation on strings.

See Also: TuAppField(), TuAssField(), TuAssign(), TuDelField(), TuFieldSort(), TuInsField(), TuMerge(), TuName(), TuProject(), splitstring(), substring().

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 ConfiguratorDemo (3D Produkt Konfigurator Demo in German).
© 1996-2024 H.E.I. All Rights Reserved.

Component Guide
  Language Guide
  Language Ref.
    General Design
    Lexical Structure
    heitml Tags
    heitml Functions
    Advanced Functions
    Database Access
    Global Variables
    Form Fields
    Server Variables
    heitml Syntax
  Component Ref.
  Class Library
  User Components
  New Features
  heitml 1
User Guide
Contact / Impressum