Documentation
Getting Started
New Features
Component Guide
Programming
    Language Guide
    Language Ref.
       General Design
       Lexical Structure
       Expressions
       Objects
       Methods
       Classes
       heitml Tags
       heitml Functions
          ArAppend
          ArConcat
          ArSearch
          array
          asc
          caltime
          chr
          class
          clone
          contains
          ContainsCase
          copy
          copyfile
          crypt
          _dbcolumns
          _dbforeignkey
          _dbprimarykey
          _dbtables
          default
          deletefile
          directory
          findex
          flush
          fname
          gmtime
          htmlbool
          http_content_type
          http_empty_document
          http_expires
          http_header
          http_last_modified
          http_location
          http_set_cookie
          http_request_header
          index
          IndexCase
          integer
          isbool
          isdecl
          isempty
          isinteger
          isnull
          isstring
          istuple
          isreal
          left
          len
          localtime
          MD5
          mkdir
          mktime
          movefile
          offstotabcol
          random
          readFileLines
          _readini
          _readodbcdrv
          _readodbcdsn
          real
          resize
          right
          _serverdocroot
          _shelltemp
          srandom
          splitstring
          stat
          strftime
          subst
          substall
          substring
          tabcoltooffs
          tolower
          toupper
          trim
          trimleft
          trimright
          TuAppField
          TuAssField
          TuAssign
          TuSlice
          TuDelField
          TuFieldSort
          TuInsField
          TuMerge
          TuName
          TuProject
          _writeini
       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
    

resize

Format: resize (object, logsize, physize)

Purpose: Resizes an object. The object parameter must denote an object. The logsize and physize parameters must be integers. If physize is a value less than logsize, physize is set to the value of logsize. The resized object will contain logsize fields. To avoid object reallocation each time the object is extended, a physize value greater than logsize indicates that the object should actually provide physize fields. Thus, the object is only reallocated if its current number of physically allocated fields is less than physize.

Return Values: This function doesn't return a value.

Example:

heitml input:
<let a=array(1);  // array has 1 element.
resize(a, 12, 15); // array has 12 elements,
                   // but memory already allocated for 15 elements.
resize(a, 14);	   // array has 14 elements, but resize did not do
                   // any memory reallocation.
>

See Also: array().


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